Invalidate workflows query when saved (#803)

Co-authored-by: Muhammed Salih Altun <muhammedsalihaltun@gmail.com>
This commit is contained in:
Kerem Yilmaz
2024-09-10 11:52:03 -07:00
committed by GitHub
parent 4800fe4f0a
commit 995daba429
2 changed files with 40 additions and 0 deletions

View File

@@ -64,6 +64,9 @@ function WorkflowEditor() {
queryClient.invalidateQueries({
queryKey: ["workflow", workflowPermanentId],
});
queryClient.invalidateQueries({
queryKey: ["workflows"],
});
},
onError: (error: AxiosError) => {
toast({