From d928123630b8a4320cb7c81c30d4d544942ffbfc Mon Sep 17 00:00:00 2001 From: Ash Date: Thu, 12 Sep 2024 13:39:18 +0100 Subject: [PATCH] fix(sanity): prevent empty patches being created --- .../document/document-pair/serverOperations/patch.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/sanity/src/core/store/_legacy/document/document-pair/serverOperations/patch.ts b/packages/sanity/src/core/store/_legacy/document/document-pair/serverOperations/patch.ts index 4fce51f99a3..5592de150bf 100644 --- a/packages/sanity/src/core/store/_legacy/document/document-pair/serverOperations/patch.ts +++ b/packages/sanity/src/core/store/_legacy/document/document-pair/serverOperations/patch.ts @@ -44,7 +44,11 @@ export const patch: OperationImpl<[patches: any[], initialDocument?: Record