This commit is contained in:
Raphaël MANSUY 2025-12-04 19:18:13 +08:00
parent dd1961ee48
commit 93acccf818

View file

@ -340,11 +340,12 @@ const fetchGraph = async (label: string, maxDepth: number, maxNodes: number) =>
const target = nodeIdMap[edge.target]
if (source !== undefined && target !== undefined) {
const sourceNode = rawData.nodes[source]
const targetNode = rawData.nodes[target]
if (!sourceNode) {
console.error(`Source node ${edge.source} is undefined`)
continue
}
const targetNode = rawData.nodes[target]
if (!targetNode) {
console.error(`Target node ${edge.target} is undefined`)
continue