Skip to content

Commit 98500a8

Browse files
committed
fix diff comment
1 parent 559496b commit 98500a8

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

apps/sim/lib/workflows/diff/diff-engine.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,11 @@ function computeFieldDiff(
6060
for (const field of fieldsToCheck) {
6161
const currentValue = currentBlock[field]
6262
const proposedValue = proposedBlock[field]
63-
if (JSON.stringify(currentValue) !== JSON.stringify(proposedValue)) {
63+
if (
64+
field === 'locked'
65+
? !!currentValue !== !!proposedValue
66+
: JSON.stringify(currentValue) !== JSON.stringify(proposedValue)
67+
) {
6468
changedFields.push(field)
6569
} else if (currentValue !== undefined) {
6670
unchangedFields.push(field)

0 commit comments

Comments
 (0)