web_ui: check node source and target

(cherry picked from commit 6a8de2edb2)
This commit is contained in:
zl7261 2025-09-29 15:22:24 +08:00 committed by Raphaël MANSUY
parent ed73def994
commit cbdba2a744

View file

@ -338,7 +338,7 @@ const fetchGraph = async (label: string, maxDepth: number, maxNodes: number) =>
const source = nodeIdMap[edge.source]
const target = nodeIdMap[edge.target]
if (source !== undefined && source !== undefined) {
if (source !== undefined && target !== undefined) {
const sourceNode = rawData.nodes[source]
const targetNode = rawData.nodes[target]
if (!sourceNode) {