Fix linting
This commit is contained in:
@@ -13,7 +13,7 @@ const GraphLabels = () => {
|
|||||||
const label = useSettingsStore.use.queryLabel()
|
const label = useSettingsStore.use.queryLabel()
|
||||||
const allDatabaseLabels = useGraphStore.use.allDatabaseLabels()
|
const allDatabaseLabels = useGraphStore.use.allDatabaseLabels()
|
||||||
const labelsFetchAttempted = useGraphStore.use.labelsFetchAttempted()
|
const labelsFetchAttempted = useGraphStore.use.labelsFetchAttempted()
|
||||||
|
|
||||||
// Remove initial label fetch effect as it's now handled by fetchGraph based on lastSuccessfulQueryLabel
|
// Remove initial label fetch effect as it's now handled by fetchGraph based on lastSuccessfulQueryLabel
|
||||||
|
|
||||||
const getSearchEngine = useCallback(() => {
|
const getSearchEngine = useCallback(() => {
|
||||||
@@ -59,8 +59,8 @@ const GraphLabels = () => {
|
|||||||
|
|
||||||
// Show queryLabel validation status
|
// Show queryLabel validation status
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
|
|
||||||
if (labelsFetchAttempted) {
|
if (labelsFetchAttempted) {
|
||||||
if (allDatabaseLabels.length > 1) {
|
if (allDatabaseLabels.length > 1) {
|
||||||
if (label && label !== '*' && !allDatabaseLabels.includes(label)) {
|
if (label && label !== '*' && !allDatabaseLabels.includes(label)) {
|
||||||
console.log(`Label "${label}" not in available labels`);
|
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
|
// Continue with graph fetch even if labels fetch fails
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Trigger GraphLabels component to check if the label is valid
|
// Trigger GraphLabels component to check if the label is valid
|
||||||
// console.log('Setting labelsFetchAttempted to true');
|
// console.log('Setting labelsFetchAttempted to true');
|
||||||
useGraphStore.getState().setLabelsFetchAttempted(true)
|
useGraphStore.getState().setLabelsFetchAttempted(true)
|
||||||
|
Reference in New Issue
Block a user