From 99f1bb6163fac1aa61218b6c2a3cfd1a34cadc71 Mon Sep 17 00:00:00 2001 From: Ash Date: Fri, 13 Sep 2024 09:27:37 +0100 Subject: [PATCH] fix(sanity): prevent empty patches being created (#7499) --- .../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