Fix linting
This commit is contained in:
parent
df0594852a
commit
11b93f1a25
2 changed files with 4 additions and 4 deletions
|
|
@ -13,7 +13,7 @@ const GraphLabels = () => {
|
|||
const label = useSettingsStore.use.queryLabel()
|
||||
const allDatabaseLabels = useGraphStore.use.allDatabaseLabels()
|
||||
const labelsFetchAttempted = useGraphStore.use.labelsFetchAttempted()
|
||||
|
||||
|
||||
// Remove initial label fetch effect as it's now handled by fetchGraph based on lastSuccessfulQueryLabel
|
||||
|
||||
const getSearchEngine = useCallback(() => {
|
||||
|
|
@ -59,8 +59,8 @@ const GraphLabels = () => {
|
|||
|
||||
// Show queryLabel validation status
|
||||
useEffect(() => {
|
||||
|
||||
if (labelsFetchAttempted) {
|
||||
|
||||
if (labelsFetchAttempted) {
|
||||
if (allDatabaseLabels.length > 1) {
|
||||
if (label && label !== '*' && !allDatabaseLabels.includes(label)) {
|
||||
console.log(`Label "${label}" not in available labels`);
|
||||
|
|
|
|||
|
|
@ -119,7 +119,7 @@ const fetchGraph = async (label: string, maxDepth: number, maxNodes: number) =>
|
|||
// Continue with graph fetch even if labels fetch fails
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// Trigger GraphLabels component to check if the label is valid
|
||||
// console.log('Setting labelsFetchAttempted to true');
|
||||
useGraphStore.getState().setLabelsFetchAttempted(true)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue