From b3e92768b1a990d66be0a9430449a50d06a96fa6 Mon Sep 17 00:00:00 2001 From: "andrii.dudar" Date: Wed, 18 Dec 2024 10:10:05 +0100 Subject: [PATCH] [OPIK-635] [Experiments page] After deleting all experiments page shows empty state message for few seconds (#915) --- .../src/api/datasets/useExperimentBatchDeleteMutation.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/opik-frontend/src/api/datasets/useExperimentBatchDeleteMutation.ts b/apps/opik-frontend/src/api/datasets/useExperimentBatchDeleteMutation.ts index 92ba0e0925..03f8448c76 100644 --- a/apps/opik-frontend/src/api/datasets/useExperimentBatchDeleteMutation.ts +++ b/apps/opik-frontend/src/api/datasets/useExperimentBatchDeleteMutation.ts @@ -32,6 +32,7 @@ const useExperimentBatchDeleteMutation = () => { }); }, onSettled: () => { + queryClient.invalidateQueries({ queryKey: ["datasets"] }); return queryClient.invalidateQueries({ queryKey: ["experiments"], });