Skip to content

Commit

Permalink
refactor(sanity): remove unnecessary array
Browse files Browse the repository at this point in the history
  • Loading branch information
juice49 committed May 10, 2024
1 parent acc1695 commit 1c476da
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/sanity/src/core/templates/resolve.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,9 @@ export async function resolveValue<Params, InitialValue>(

const key = JSON.stringify([
params,
[context.projectId, context.dataset, context.currentUser?.id],
context.projectId,
context.dataset,
context.currentUser?.id,
])

if (useCache && cached?.[key]) {
Expand Down

0 comments on commit 1c476da

Please sign in to comment.