yangdx
commited on
Commit
·
3be437a
1
Parent(s):
422ad46
Fix linting
Browse files
lightrag_webui/src/components/graph/GraphLabels.tsx
CHANGED
@@ -49,7 +49,7 @@ const GraphLabels = () => {
|
|
49 |
? result
|
50 |
: [...result.slice(0, labelListLimit), '...']
|
51 |
},
|
52 |
-
[getSearchEngine
|
53 |
)
|
54 |
|
55 |
return (
|
@@ -68,7 +68,7 @@ const GraphLabels = () => {
|
|
68 |
value={label !== null ? label : '*'}
|
69 |
onChange={(newLabel) => {
|
70 |
const currentLabel = useSettingsStore.getState().queryLabel
|
71 |
-
|
72 |
if (newLabel === '...') {
|
73 |
newLabel = '*'
|
74 |
}
|
|
|
49 |
? result
|
50 |
: [...result.slice(0, labelListLimit), '...']
|
51 |
},
|
52 |
+
[getSearchEngine]
|
53 |
)
|
54 |
|
55 |
return (
|
|
|
68 |
value={label !== null ? label : '*'}
|
69 |
onChange={(newLabel) => {
|
70 |
const currentLabel = useSettingsStore.getState().queryLabel
|
71 |
+
|
72 |
if (newLabel === '...') {
|
73 |
newLabel = '*'
|
74 |
}
|
lightrag_webui/src/features/GraphViewer.tsx
CHANGED
@@ -149,8 +149,8 @@ const GraphViewer = () => {
|
|
149 |
)
|
150 |
|
151 |
return (
|
152 |
-
<SigmaContainer
|
153 |
-
settings={sigmaSettings}
|
154 |
className="!bg-background !size-full overflow-hidden"
|
155 |
ref={sigmaRef}
|
156 |
>
|
|
|
149 |
)
|
150 |
|
151 |
return (
|
152 |
+
<SigmaContainer
|
153 |
+
settings={sigmaSettings}
|
154 |
className="!bg-background !size-full overflow-hidden"
|
155 |
ref={sigmaRef}
|
156 |
>
|
lightrag_webui/src/hooks/useLightragGraph.tsx
CHANGED
@@ -222,7 +222,7 @@ const useLightrangeGraph = () => {
|
|
222 |
state.sigmaGraph?.setNodeAttribute(node, 'highlighted', false);
|
223 |
});
|
224 |
}
|
225 |
-
|
226 |
state.setIsFetching(true);
|
227 |
fetchStatusRef.current[fetchKey] = true;
|
228 |
fetchGraph(queryLabel, maxQueryDepth, minDegree).then((data) => {
|
|
|
222 |
state.sigmaGraph?.setNodeAttribute(node, 'highlighted', false);
|
223 |
});
|
224 |
}
|
225 |
+
|
226 |
state.setIsFetching(true);
|
227 |
fetchStatusRef.current[fetchKey] = true;
|
228 |
fetchGraph(queryLabel, maxQueryDepth, minDegree).then((data) => {
|