mirror of
https://github.com/datahub-project/datahub.git
synced 2025-08-18 06:06:55 +00:00
fix(ui/lineage): Do not crash on query entity (#9836)
This commit is contained in:
parent
4b645e1942
commit
c08d6b98eb
@ -113,26 +113,30 @@ export default function LineageExplorer({ urn, type }: Props) {
|
||||
);
|
||||
const config = entityRegistry.getLineageVizConfig(entityAndType.type, entityAndType.entity);
|
||||
|
||||
config?.downstreamChildren?.forEach((downstream) => {
|
||||
newAsyncEntities = extendAsyncEntities(
|
||||
fineGrainedMap,
|
||||
fineGrainedMapForSiblings,
|
||||
newAsyncEntities,
|
||||
entityRegistry,
|
||||
downstream,
|
||||
false,
|
||||
);
|
||||
});
|
||||
config?.upstreamChildren?.forEach((downstream) => {
|
||||
newAsyncEntities = extendAsyncEntities(
|
||||
fineGrainedMap,
|
||||
fineGrainedMapForSiblings,
|
||||
newAsyncEntities,
|
||||
entityRegistry,
|
||||
downstream,
|
||||
false,
|
||||
);
|
||||
});
|
||||
config?.downstreamChildren
|
||||
?.filter((child) => child.type)
|
||||
?.forEach((downstream) => {
|
||||
newAsyncEntities = extendAsyncEntities(
|
||||
fineGrainedMap,
|
||||
fineGrainedMapForSiblings,
|
||||
newAsyncEntities,
|
||||
entityRegistry,
|
||||
downstream,
|
||||
false,
|
||||
);
|
||||
});
|
||||
config?.upstreamChildren
|
||||
?.filter((child) => child.type)
|
||||
?.forEach((downstream) => {
|
||||
newAsyncEntities = extendAsyncEntities(
|
||||
fineGrainedMap,
|
||||
fineGrainedMapForSiblings,
|
||||
newAsyncEntities,
|
||||
entityRegistry,
|
||||
downstream,
|
||||
false,
|
||||
);
|
||||
});
|
||||
setAsyncEntities(newAsyncEntities);
|
||||
}
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user