diff --git a/lightrag_webui/src/components/graph/GraphLabels.tsx b/lightrag_webui/src/components/graph/GraphLabels.tsx index 0310e9f7..76a7757b 100644 --- a/lightrag_webui/src/components/graph/GraphLabels.tsx +++ b/lightrag_webui/src/components/graph/GraphLabels.tsx @@ -94,7 +94,13 @@ const GraphLabels = () => { useGraphStore.getState().setTypeColorMap(new Map()) try { - const currentLabel = label + let currentLabel = label + + // If queryLabel is empty, set it to '*' + if (!currentLabel || currentLabel.trim() === '') { + useSettingsStore.getState().setQueryLabel('*') + currentLabel = '*' + } if (currentLabel && currentLabel !== '*') { // Scenario 1: Has specific label, try to refresh current label