Skip to content

Commit 414375f

Browse files
fix(custom-blocks): don't flag create as dirty when source auto-snaps
The create dirty-check compared selectedWorkspaceId against the URL workspace, but the source picker now auto-snaps to the first workspace the user can publish from — which may differ. Compare against that eligible default so opening/discarding the create flow doesn't show a false unsaved-changes state. (Bugbot) Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017ddpeoz81CSqYQ73Dzf7yo
1 parent 3bea60c commit 414375f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

apps/sim/ee/custom-blocks/components/custom-block-detail.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ export function CustomBlockDetail({ blockId, workspaceId, onBack }: CustomBlockD
263263
name.trim() ||
264264
description.trim() ||
265265
selectedWorkflowId ||
266-
selectedWorkspaceId !== workspaceId ||
266+
selectedWorkspaceId !== eligibleDefaultWorkspaceId ||
267267
iconUrl ||
268268
visibleOutputs.length > 0 ||
269269
visibleInputs.some((i) => i.placeholder?.trim())

0 commit comments

Comments
 (0)