web_ui: check node source and target

This commit is contained in:
zl7261 2025-09-29 15:22:24 +08:00 committed by GitHub
parent 86195c613e
commit 6a8de2edb2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -337,7 +337,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) {