From 4e7e3b6134b553e1ddd10fa84856863173b27ad9 Mon Sep 17 00:00:00 2001 From: Danny Lin Date: Tue, 9 Nov 2021 19:58:05 -0800 Subject: [PATCH] blobs: props: Fix diff logic for modified props --- src/blobs/props.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/blobs/props.ts b/src/blobs/props.ts index 9ef3b2b..c637b37 100644 --- a/src/blobs/props.ts +++ b/src/blobs/props.ts @@ -56,7 +56,9 @@ export function diffPartitionProps(partPropsRef: PartitionProps, partPropsNew: P for (let [newKey, newValue] of propsNew.entries()) { if (propsRef?.has(newKey)) { let refValue = propsRef.get(newKey)! - changes.modified.set(newKey, [refValue, newValue]) + if (newValue != refValue) { + changes.modified.set(newKey, [refValue, newValue]) + } } else { changes.added.set(newKey, newValue) }