Skip to content

Commit

Permalink
fix(base): skip cross dataset validation on mutations (#3856)
Browse files Browse the repository at this point in the history
  • Loading branch information
sjelfull committed Nov 14, 2022
1 parent 25de30f commit d746aae
Showing 1 changed file with 3 additions and 0 deletions.
Expand Up @@ -50,6 +50,9 @@ function commitMutations(mutationParams: MutatorMutation['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

2 comments on commit d746aae

@vercel
Copy link

@vercel vercel bot commented on d746aae Nov 14, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

studio-workshop – ./

studio-workshop.sanity.build
studio-workshop-git-next.sanity.build

@vercel
Copy link

@vercel vercel bot commented on d746aae Nov 14, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

test-studio – ./

test-studio-git-next.sanity.build
test-studio.sanity.build

Please sign in to comment.