From 9969bf102dc5b10ef5907a9ca932c25a4666a3cc Mon Sep 17 00:00:00 2001 From: yangdx Date: Sat, 5 Apr 2025 06:18:59 +0800 Subject: [PATCH] Fix linting --- lightrag_webui/src/components/graph/GraphLabels.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lightrag_webui/src/components/graph/GraphLabels.tsx b/lightrag_webui/src/components/graph/GraphLabels.tsx index fb91bfb9..f43bd955 100644 --- a/lightrag_webui/src/components/graph/GraphLabels.tsx +++ b/lightrag_webui/src/components/graph/GraphLabels.tsx @@ -63,9 +63,9 @@ const GraphLabels = () => { // 2. Current label is not the default '*' // 3. Current label doesn't exist in allDatabaseLabels if ( - allDatabaseLabels.length > 1 && - label && - label !== '*' && + allDatabaseLabels.length > 1 && + label && + label !== '*' && !allDatabaseLabels.includes(label) ) { console.log(`Label "${label}" not found in available labels, resetting to default`);