diff --git a/apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/panel.tsx b/apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/panel.tsx index 1a997731fd8..94454832fd1 100644 --- a/apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/panel.tsx +++ b/apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/panel.tsx @@ -151,6 +151,9 @@ export const Panel = memo(function Panel() { const { data: workflows = {} } = useWorkflowMap(workspaceId) const { data: folders = {} } = useFolderMap(workspaceId) const activeWorkflowId = useWorkflowRegistry((state) => state.activeWorkflowId) + const copilotDraftScopeKey = activeWorkflowId + ? `${workspaceId}:copilot:${activeWorkflowId}` + : undefined const { handleAutoLayout: autoLayoutWithFitView } = useAutoLayout(activeWorkflowId || null) // Check for locked blocks (disables auto-layout) @@ -883,6 +886,7 @@ export const Panel = memo(function Panel() {