blobs: props: Fix diff logic for modified props

This commit is contained in:
Danny Lin 2021-11-09 19:58:05 -08:00
parent 45179b2521
commit 4e7e3b6134

View file

@ -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)
}