From c1e931b9f2f74ac438049bb8d607bc5113c16348 Mon Sep 17 00:00:00 2001 From: yangdx Date: Thu, 13 Mar 2025 01:49:50 +0800 Subject: [PATCH] Fix linting --- lightrag_webui/src/components/graph/GraphLabels.tsx | 4 ++-- lightrag_webui/src/features/GraphViewer.tsx | 4 ++-- lightrag_webui/src/hooks/useLightragGraph.tsx | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lightrag_webui/src/components/graph/GraphLabels.tsx b/lightrag_webui/src/components/graph/GraphLabels.tsx index f8401238..1a1e428b 100644 --- a/lightrag_webui/src/components/graph/GraphLabels.tsx +++ b/lightrag_webui/src/components/graph/GraphLabels.tsx @@ -49,7 +49,7 @@ const GraphLabels = () => { ? result : [...result.slice(0, labelListLimit), '...'] }, - [getSearchEngine, t] + [getSearchEngine] ) return ( @@ -68,7 +68,7 @@ const GraphLabels = () => { value={label !== null ? label : '*'} onChange={(newLabel) => { const currentLabel = useSettingsStore.getState().queryLabel - + if (newLabel === '...') { newLabel = '*' } diff --git a/lightrag_webui/src/features/GraphViewer.tsx b/lightrag_webui/src/features/GraphViewer.tsx index aab10c1a..4b8e30c7 100644 --- a/lightrag_webui/src/features/GraphViewer.tsx +++ b/lightrag_webui/src/features/GraphViewer.tsx @@ -149,8 +149,8 @@ const GraphViewer = () => { ) return ( - diff --git a/lightrag_webui/src/hooks/useLightragGraph.tsx b/lightrag_webui/src/hooks/useLightragGraph.tsx index a8c43434..dc3294cf 100644 --- a/lightrag_webui/src/hooks/useLightragGraph.tsx +++ b/lightrag_webui/src/hooks/useLightragGraph.tsx @@ -222,7 +222,7 @@ const useLightrangeGraph = () => { state.sigmaGraph?.setNodeAttribute(node, 'highlighted', false); }); } - + state.setIsFetching(true); fetchStatusRef.current[fetchKey] = true; fetchGraph(queryLabel, maxQueryDepth, minDegree).then((data) => {