Skip to content

Commit d4b2716

Browse files
waleedlatif1claude
andcommitted
fix(workflows): exclude block locked field from workflow diff comparison
Strip `locked` from blockRest in extractBlockFieldsForComparison so that toggling block lock state does not trigger "changes detected" warnings. The field was already removed from the explicit blockFields check but still leaked through the full blockRest stringify comparison. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 5a20f06 commit d4b2716

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

apps/sim/lib/workflows/comparison/normalize.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -398,6 +398,7 @@ export function extractBlockFieldsForComparison(block: BlockState): ExtractedBlo
398398
layout: _layout,
399399
height: _height,
400400
outputs: _outputs,
401+
locked: _locked,
401402
is_diff: _isDiff,
402403
field_diffs: _fieldDiffs,
403404
...blockRest

0 commit comments

Comments
 (0)