fix(ui/lineage): Do not crash on query entity (#9836)

This commit is contained in:
Andrew Sikowitz 2024-02-14 11:51:48 -05:00 committed by GitHub
parent 4b645e1942
commit c08d6b98eb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -113,7 +113,9 @@ export default function LineageExplorer({ urn, type }: Props) {
);
const config = entityRegistry.getLineageVizConfig(entityAndType.type, entityAndType.entity);
config?.downstreamChildren?.forEach((downstream) => {
config?.downstreamChildren
?.filter((child) => child.type)
?.forEach((downstream) => {
newAsyncEntities = extendAsyncEntities(
fineGrainedMap,
fineGrainedMapForSiblings,
@ -123,7 +125,9 @@ export default function LineageExplorer({ urn, type }: Props) {
false,
);
});
config?.upstreamChildren?.forEach((downstream) => {
config?.upstreamChildren
?.filter((child) => child.type)
?.forEach((downstream) => {
newAsyncEntities = extendAsyncEntities(
fineGrainedMap,
fineGrainedMapForSiblings,