We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 559496b commit 98500a8Copy full SHA for 98500a8
apps/sim/lib/workflows/diff/diff-engine.ts
@@ -60,7 +60,11 @@ function computeFieldDiff(
60
for (const field of fieldsToCheck) {
61
const currentValue = currentBlock[field]
62
const proposedValue = proposedBlock[field]
63
- if (JSON.stringify(currentValue) !== JSON.stringify(proposedValue)) {
+ if (
64
+ field === 'locked'
65
+ ? !!currentValue !== !!proposedValue
66
+ : JSON.stringify(currentValue) !== JSON.stringify(proposedValue)
67
+ ) {
68
changedFields.push(field)
69
} else if (currentValue !== undefined) {
70
unchangedFields.push(field)
0 commit comments