fix(ui): versions null reference issues (#12919)

This commit is contained in:
Saketh Varma 2025-03-20 23:50:14 -03:00 committed by GitHub
parent 90ad3935a7
commit 56d92f3e66
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 4 deletions

View File

@ -16,14 +16,14 @@ const MoreIndicator = styled.span`
`;
interface Props {
schemaFieldEntity: SchemaFieldEntity;
schemaFieldEntity: SchemaFieldEntity | undefined;
propColumn: SearchResult | undefined;
}
const StructuredPropValues = ({ schemaFieldEntity, propColumn }: Props) => {
const entityRegistry = useEntityRegistry();
const property = schemaFieldEntity.structuredProperties?.properties?.find(
const property = schemaFieldEntity?.structuredProperties?.properties?.find(
(prop) => prop.structuredProperty.urn === propColumn?.entity?.urn,
);
const propRow = property ? mapStructuredPropertyToPropertyRow(property) : undefined;

View File

@ -16,14 +16,14 @@ const MoreIndicator = styled.span`
`;
interface Props {
schemaFieldEntity: SchemaFieldEntity;
schemaFieldEntity: SchemaFieldEntity | undefined;
propColumn: SearchResult | undefined;
}
const StructuredPropValues = ({ schemaFieldEntity, propColumn }: Props) => {
const entityRegistry = useEntityRegistry();
const property = schemaFieldEntity.structuredProperties?.properties?.find(
const property = schemaFieldEntity?.structuredProperties?.properties?.find(
(prop) => prop.structuredProperty.urn === propColumn?.entity?.urn,
);
const propRow = property ? mapStructuredPropertyToPropertyRow(property) : undefined;