Skip to content

Commit

Permalink
fix(core): skip cdr validation on mutations
Browse files Browse the repository at this point in the history
Signed-off-by: Fred Carlsen <fred@sjelfull.no>
  • Loading branch information
sjelfull committed Nov 9, 2022
1 parent 32c1e26 commit 3707e18
Showing 1 changed file with 3 additions and 0 deletions.
Expand Up @@ -64,6 +64,9 @@ function commitMutations(client: SanityClient, mutationParams: Mutation['params'
visibility: 'async',
returnDocuments: false,
tag: 'document.commit',
// This makes sure the studio doesn't crash when a draft is crated
// because someone deleted a referenced document in the target dataset
skipCrossDatasetReferenceValidation: true,
})
}

Expand Down

0 comments on commit 3707e18

Please sign in to comment.