From 93acccf81876acba63bcf02b6d5b0b2ac39ee914 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20MANSUY?= Date: Thu, 4 Dec 2025 19:18:13 +0800 Subject: [PATCH] cherry-pick ffcd75a4 --- lightrag_webui/src/hooks/useLightragGraph.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lightrag_webui/src/hooks/useLightragGraph.tsx b/lightrag_webui/src/hooks/useLightragGraph.tsx index af47425b..73fcb53c 100644 --- a/lightrag_webui/src/hooks/useLightragGraph.tsx +++ b/lightrag_webui/src/hooks/useLightragGraph.tsx @@ -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