Skip to content

Commit

Permalink
refactor: replace if with ?
Browse files Browse the repository at this point in the history
  • Loading branch information
posva committed May 14, 2024
1 parent 1fb2a17 commit 225a87d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/query-store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -223,9 +223,7 @@ export const useQueryCache = defineStore(QUERY_STORE_ID, () => {
entry.options ??= options

// if this query was defined within a defineQuery call, add it to the list
if (currentDefineQueryEntry) {
currentDefineQueryEntry[0].push(entry)
}
currentDefineQueryEntry?.[0].push(entry)

return entry
}
Expand Down

0 comments on commit 225a87d

Please sign in to comment.