Skip to content

Commit

Permalink
style: cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
demshy committed Sep 6, 2023
1 parent 97923b3 commit 63c2983
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/decap-cms-core/src/actions/search.ts
Original file line number Diff line number Diff line change
Expand Up @@ -176,11 +176,10 @@ export function query(
const queryIdentifier = `${collectionName}-${searchFields.join()}-${searchTerm}-${file}-${limit}`;

const queuedQueryPromise = state.search.requests.find(({ id }) => id == queryIdentifier);
// const queuedQueryPromise = null

const queryPromise = queuedQueryPromise
? queuedQueryPromise.queryResponse
:integration
: integration
? getIntegrationProvider(state.integrations, backend.getToken, integration).searchBy(
searchFields.map(f => `data.${f}`),
collectionName,
Expand Down

0 comments on commit 63c2983

Please sign in to comment.