Fix linting

This commit is contained in:
yangdx
2025-03-13 01:49:50 +08:00
parent 06bff7e836
commit c1e931b9f2
3 changed files with 5 additions and 5 deletions

View File

@@ -49,7 +49,7 @@ const GraphLabels = () => {
? result ? result
: [...result.slice(0, labelListLimit), '...'] : [...result.slice(0, labelListLimit), '...']
}, },
[getSearchEngine, t] [getSearchEngine]
) )
return ( return (
@@ -68,7 +68,7 @@ const GraphLabels = () => {
value={label !== null ? label : '*'} value={label !== null ? label : '*'}
onChange={(newLabel) => { onChange={(newLabel) => {
const currentLabel = useSettingsStore.getState().queryLabel const currentLabel = useSettingsStore.getState().queryLabel
if (newLabel === '...') { if (newLabel === '...') {
newLabel = '*' newLabel = '*'
} }

View File

@@ -149,8 +149,8 @@ const GraphViewer = () => {
) )
return ( return (
<SigmaContainer <SigmaContainer
settings={sigmaSettings} settings={sigmaSettings}
className="!bg-background !size-full overflow-hidden" className="!bg-background !size-full overflow-hidden"
ref={sigmaRef} ref={sigmaRef}
> >

View File

@@ -222,7 +222,7 @@ const useLightrangeGraph = () => {
state.sigmaGraph?.setNodeAttribute(node, 'highlighted', false); state.sigmaGraph?.setNodeAttribute(node, 'highlighted', false);
}); });
} }
state.setIsFetching(true); state.setIsFetching(true);
fetchStatusRef.current[fetchKey] = true; fetchStatusRef.current[fetchKey] = true;
fetchGraph(queryLabel, maxQueryDepth, minDegree).then((data) => { fetchGraph(queryLabel, maxQueryDepth, minDegree).then((data) => {