Skip to content

Commit

Permalink
fixup! refactor(core): migrate Actions API usage to Sanity Client
Browse files Browse the repository at this point in the history
  • Loading branch information
bjoerge committed May 29, 2024
1 parent 3a6b2b0 commit 591f370
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export const del: OperationImpl<[], 'NOTHING_TO_DELETE'> = {
return client.observable.action(
{
actionType: 'sanity.action.document.delete',
includeDrafts: [idPair.draftId],
includeDrafts: snapshots.draft ? [idPair.draftId] : [],
publishedId: idPair.publishedId,
purge: false,
},
Expand Down

0 comments on commit 591f370

Please sign in to comment.