Fix linting

This commit is contained in:
yangdx
2025-03-21 21:51:52 +08:00
parent a5aa3da3bc
commit 101e1c907c
3 changed files with 20 additions and 18 deletions

View File

@@ -60,13 +60,13 @@ const GraphLabels = () => {
// Reset fetch status flags
useGraphStore.getState().setLabelsFetchAttempted(false)
useGraphStore.getState().setGraphDataFetchAttempted(false)
// Clear last successful query label to ensure labels are fetched
useGraphStore.getState().setLastSuccessfulQueryLabel('')
// Get current label
const currentLabel = useSettingsStore.getState().queryLabel
// If current label is empty, use default label '*'
if (!currentLabel) {
useSettingsStore.getState().setQueryLabel('*')
@@ -119,7 +119,7 @@ const GraphLabels = () => {
// Reset graphDataFetchAttempted flag to ensure data fetch is triggered
useGraphStore.getState().setGraphDataFetchAttempted(false);
// Update the label to trigger data loading
useSettingsStore.getState().setQueryLabel(newLabel);
}}