Skip to content

Commit a6adbaf

Browse files
committed
fix subblock update
1 parent 19cde17 commit a6adbaf

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

apps/sim/hooks/use-collaborative-workflow.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -957,6 +957,10 @@ export function useCollaborativeWorkflow() {
957957

958958
useWorkflowStore.getState().setBlockCanonicalMode(id, canonicalId, canonicalMode)
959959

960+
if (!activeWorkflowId) {
961+
return
962+
}
963+
960964
const operationId = crypto.randomUUID()
961965
addToQueue({
962966
id: operationId,
@@ -965,7 +969,7 @@ export function useCollaborativeWorkflow() {
965969
target: OPERATION_TARGETS.BLOCK,
966970
payload: { id, canonicalId, canonicalMode },
967971
},
968-
workflowId: activeWorkflowId || '',
972+
workflowId: activeWorkflowId,
969973
userId: session?.user?.id || 'unknown',
970974
})
971975
},

0 commit comments

Comments
 (0)