Skip to content

Commit 6393df8

Browse files
committed
fix(core): ensure all keys are reconciled
1 parent 0587ee5 commit 6393df8

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

packages/sanity/src/core/form/store/utils/immutableReconcile.ts

+1-3
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,7 @@ function _immutableReconcile<T>(
5959
const result: Record<string, unknown> = {}
6060
parents.set(next, result)
6161
for (const key of nextKeys) {
62-
const nextValue = next.propertyIsEnumerable(key)
63-
? _immutableReconcile(previous[key], next[key]!, parents)
64-
: next[key]
62+
const nextValue = _immutableReconcile(previous[key], next[key]!, parents)
6563
if (nextValue !== previous[key]) {
6664
allEqual = false
6765
}

0 commit comments

Comments
 (0)