From be1216770e26a6448ba3ac54e50faf0f82ec2f42 Mon Sep 17 00:00:00 2001 From: yangdx Date: Tue, 23 Sep 2025 22:31:15 +0800 Subject: [PATCH] Fix linting --- lightrag_webui/src/hooks/useLightragGraph.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lightrag_webui/src/hooks/useLightragGraph.tsx b/lightrag_webui/src/hooks/useLightragGraph.tsx index d67286b5..d67d4964 100644 --- a/lightrag_webui/src/hooks/useLightragGraph.tsx +++ b/lightrag_webui/src/hooks/useLightragGraph.tsx @@ -36,7 +36,7 @@ const TYPE_SYNONYMS: Record = { 'method': 'method', 'process': 'method', '方法': 'method', - '过程': 'method', + '过程': 'method', 'artifact': 'artifact', 'technology': 'technology', @@ -160,13 +160,13 @@ const getNodeColorByType = (nodeType: string | undefined): string => { // First try to find standard type const standardType = TYPE_SYNONYMS[normalizedType]; - + // Check cache using standard type if available, otherwise use normalized type const cacheKey = standardType || normalizedType; if (typeColorMap.has(cacheKey)) { return typeColorMap.get(cacheKey) || defaultColor; } - + if (standardType) { const color = NODE_TYPE_COLORS[standardType]; // Store using standard type name as key