blobs: props: Fix diff logic for modified props
This commit is contained in:
parent
45179b2521
commit
4e7e3b6134
1 changed files with 3 additions and 1 deletions
|
@ -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)!
|
||||
if (newValue != refValue) {
|
||||
changes.modified.set(newKey, [refValue, newValue])
|
||||
}
|
||||
} else {
|
||||
changes.added.set(newKey, newValue)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue