mirror of
https://github.com/datahub-project/datahub.git
synced 2025-11-12 09:23:52 +00:00
fix(ui): versions null reference issues (#12919)
This commit is contained in:
parent
90ad3935a7
commit
56d92f3e66
@ -16,14 +16,14 @@ const MoreIndicator = styled.span`
|
|||||||
`;
|
`;
|
||||||
|
|
||||||
interface Props {
|
interface Props {
|
||||||
schemaFieldEntity: SchemaFieldEntity;
|
schemaFieldEntity: SchemaFieldEntity | undefined;
|
||||||
propColumn: SearchResult | undefined;
|
propColumn: SearchResult | undefined;
|
||||||
}
|
}
|
||||||
|
|
||||||
const StructuredPropValues = ({ schemaFieldEntity, propColumn }: Props) => {
|
const StructuredPropValues = ({ schemaFieldEntity, propColumn }: Props) => {
|
||||||
const entityRegistry = useEntityRegistry();
|
const entityRegistry = useEntityRegistry();
|
||||||
|
|
||||||
const property = schemaFieldEntity.structuredProperties?.properties?.find(
|
const property = schemaFieldEntity?.structuredProperties?.properties?.find(
|
||||||
(prop) => prop.structuredProperty.urn === propColumn?.entity?.urn,
|
(prop) => prop.structuredProperty.urn === propColumn?.entity?.urn,
|
||||||
);
|
);
|
||||||
const propRow = property ? mapStructuredPropertyToPropertyRow(property) : undefined;
|
const propRow = property ? mapStructuredPropertyToPropertyRow(property) : undefined;
|
||||||
|
|||||||
@ -16,14 +16,14 @@ const MoreIndicator = styled.span`
|
|||||||
`;
|
`;
|
||||||
|
|
||||||
interface Props {
|
interface Props {
|
||||||
schemaFieldEntity: SchemaFieldEntity;
|
schemaFieldEntity: SchemaFieldEntity | undefined;
|
||||||
propColumn: SearchResult | undefined;
|
propColumn: SearchResult | undefined;
|
||||||
}
|
}
|
||||||
|
|
||||||
const StructuredPropValues = ({ schemaFieldEntity, propColumn }: Props) => {
|
const StructuredPropValues = ({ schemaFieldEntity, propColumn }: Props) => {
|
||||||
const entityRegistry = useEntityRegistry();
|
const entityRegistry = useEntityRegistry();
|
||||||
|
|
||||||
const property = schemaFieldEntity.structuredProperties?.properties?.find(
|
const property = schemaFieldEntity?.structuredProperties?.properties?.find(
|
||||||
(prop) => prop.structuredProperty.urn === propColumn?.entity?.urn,
|
(prop) => prop.structuredProperty.urn === propColumn?.entity?.urn,
|
||||||
);
|
);
|
||||||
const propRow = property ? mapStructuredPropertyToPropertyRow(property) : undefined;
|
const propRow = property ? mapStructuredPropertyToPropertyRow(property) : undefined;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user