Skip to content

Commit

Permalink
Checking explorer is enough
Browse files Browse the repository at this point in the history
  • Loading branch information
kmcginnes committed May 10, 2024
1 parent abdb822 commit f14f0ac
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { useQuery, useQueryClient } from "@tanstack/react-query";
import { useNotification } from "../../components/NotificationProvider";
import { useConfiguration } from "../../core";
import { explorerSelector } from "../../core/connector";
import usePrefixesUpdater from "../../hooks/usePrefixesUpdater";
import { useCallback, useEffect, useMemo } from "react";
Expand All @@ -24,7 +23,6 @@ export function useKeywordSearchQuery({
neighborsLimit,
isOpen,
}: SearchQueryRequest) {
const config = useConfiguration();
const explorer = useRecoilValue(explorerSelector);
const updatePrefixes = usePrefixesUpdater();
const { enqueueNotification } = useNotification();
Expand Down Expand Up @@ -66,7 +64,7 @@ export function useKeywordSearchQuery({
{ signal }
);
},
enabled: !!config && isOpen && !!explorer,
enabled: isOpen && !!explorer,
});

// Sync sparql prefixes
Expand Down

0 comments on commit f14f0ac

Please sign in to comment.