Fix linting

This commit is contained in:
yangdx
2025-04-06 14:57:21 +08:00
parent df0594852a
commit 11b93f1a25
2 changed files with 4 additions and 4 deletions

View File

@@ -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`);