Skip to content

Commit

Permalink
fix(visual-editing): check if params are defined before stringifying (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
cadamsdev committed Dec 21, 2024
1 parent 484b862 commit 92173b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/runtime/composables/visual-editing.ts
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ export const useSanityQuery = <T = unknown, E = Error> (

const fetcher = sanity.queryStore!.createFetcherStore<T, E>(
query,
JSON.parse(JSON.stringify(params)),
params ? JSON.parse(JSON.stringify(params)) : undefined,
undefined,
)

Expand Down

0 comments on commit 92173b1

Please sign in to comment.