Fix linting
This commit is contained in:
@@ -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 = '*'
|
||||||
}
|
}
|
||||||
|
@@ -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}
|
||||||
>
|
>
|
||||||
|
@@ -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) => {
|
||||||
|
Reference in New Issue
Block a user