Skip to content

Commit 2685f38

Browse files
committed
fix(queries): invalidate chat and form status on deployment change
Add chatStatus and formStatus to invalidateDeploymentQueries so all deployment-related queries refresh when any user deploys or undeploys.
1 parent a6bae8f commit 2685f38

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

apps/sim/hooks/queries/deployments.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ export function invalidateDeploymentQueries(queryClient: QueryClient, workflowId
4242
queryClient.invalidateQueries({ queryKey: deploymentKeys.info(workflowId) }),
4343
queryClient.invalidateQueries({ queryKey: deploymentKeys.deployedState(workflowId) }),
4444
queryClient.invalidateQueries({ queryKey: deploymentKeys.versions(workflowId) }),
45+
queryClient.invalidateQueries({ queryKey: deploymentKeys.chatStatus(workflowId) }),
46+
queryClient.invalidateQueries({ queryKey: deploymentKeys.formStatus(workflowId) }),
4547
])
4648
}
4749

0 commit comments

Comments
 (0)