From 6393df81923f302709b24ec33ee9da119d7d70c5 Mon Sep 17 00:00:00 2001 From: Rico Kahler Date: Thu, 5 Sep 2024 23:13:36 -0500 Subject: [PATCH] fix(core): ensure all keys are reconciled --- .../sanity/src/core/form/store/utils/immutableReconcile.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/packages/sanity/src/core/form/store/utils/immutableReconcile.ts b/packages/sanity/src/core/form/store/utils/immutableReconcile.ts index 8e8da4d12f1..b233a743c4b 100644 --- a/packages/sanity/src/core/form/store/utils/immutableReconcile.ts +++ b/packages/sanity/src/core/form/store/utils/immutableReconcile.ts @@ -59,9 +59,7 @@ function _immutableReconcile( const result: Record = {} parents.set(next, result) for (const key of nextKeys) { - const nextValue = next.propertyIsEnumerable(key) - ? _immutableReconcile(previous[key], next[key]!, parents) - : next[key] + const nextValue = _immutableReconcile(previous[key], next[key]!, parents) if (nextValue !== previous[key]) { allEqual = false }