Skip to content

Commit bea0a68

Browse files
committed
improvement(collab): do not refetch active workflow id
1 parent b111893 commit bea0a68

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1170,16 +1170,14 @@ export function useCollaborativeWorkflow() {
11701170

11711171
const operationId = crypto.randomUUID()
11721172

1173-
const currentActiveWorkflowId = useWorkflowRegistry.getState().activeWorkflowId
1174-
11751173
addToQueue({
11761174
id: operationId,
11771175
operation: {
11781176
operation: SUBBLOCK_OPERATIONS.UPDATE,
11791177
target: OPERATION_TARGETS.SUBBLOCK,
11801178
payload: { blockId, subblockId, value },
11811179
},
1182-
workflowId: currentActiveWorkflowId || '',
1180+
workflowId: activeWorkflowId,
11831181
userId: session?.user?.id || 'unknown',
11841182
})
11851183
},

0 commit comments

Comments
 (0)