From cbdba2a74438b3c53b6c5699a3816f99d4c0fc12 Mon Sep 17 00:00:00 2001 From: zl7261 Date: Mon, 29 Sep 2025 15:22:24 +0800 Subject: [PATCH] web_ui: check node source and target (cherry picked from commit 6a8de2edb240a86b6b2db526f5bf6a6786d11dad) --- lightrag_webui/src/hooks/useLightragGraph.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lightrag_webui/src/hooks/useLightragGraph.tsx b/lightrag_webui/src/hooks/useLightragGraph.tsx index a4e48250..af47425b 100644 --- a/lightrag_webui/src/hooks/useLightragGraph.tsx +++ b/lightrag_webui/src/hooks/useLightragGraph.tsx @@ -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) {