Change query invalidation for saved task actions (#723)

This commit is contained in:
Kerem Yilmaz
2024-08-24 00:29:07 +03:00
committed by GitHub
parent ecea284284
commit 815a6fde67
2 changed files with 2 additions and 2 deletions

View File

@@ -65,7 +65,7 @@ function SavedTaskCard({ workflowId, title, url, description }: Props) {
description: "Template deleted successfully",
});
queryClient.invalidateQueries({
queryKey: ["workflows"],
queryKey: ["savedTasks"],
});
setOpen(false);
navigate("/create");

View File

@@ -90,7 +90,7 @@ function SavedTasks() {
description: "Your template was created successfully",
});
queryClient.invalidateQueries({
queryKey: ["workflows"],
queryKey: ["savedTasks"],
});
navigate(`/create/${response.workflow_permanent_id}`);
},