web_ui: check node source and target
This commit is contained in:
parent
86195c613e
commit
6a8de2edb2
1 changed files with 1 additions and 1 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue