mirror of
https://github.com/simstudioai/sim.git
synced 2026-02-03 11:14:58 -05:00
improvement(collab): do not refetch active workflow id
This commit is contained in:
@@ -1170,8 +1170,6 @@ export function useCollaborativeWorkflow() {
|
||||
|
||||
const operationId = crypto.randomUUID()
|
||||
|
||||
const currentActiveWorkflowId = useWorkflowRegistry.getState().activeWorkflowId
|
||||
|
||||
addToQueue({
|
||||
id: operationId,
|
||||
operation: {
|
||||
@@ -1179,7 +1177,7 @@ export function useCollaborativeWorkflow() {
|
||||
target: OPERATION_TARGETS.SUBBLOCK,
|
||||
payload: { blockId, subblockId, value },
|
||||
},
|
||||
workflowId: currentActiveWorkflowId || '',
|
||||
workflowId: activeWorkflowId,
|
||||
userId: session?.user?.id || 'unknown',
|
||||
})
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user