From 4e4964557bc7516ab9905225bafc3f6f88f80115 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9s=20Gonz=C3=A1lez=20Mu=C3=B1oz?= Date: Thu, 16 Nov 2023 17:29:11 +0100 Subject: [PATCH] invalidates features cache after deleting scenario --- app/layout/project/sidebar/project/scenarios-list/index.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/app/layout/project/sidebar/project/scenarios-list/index.tsx b/app/layout/project/sidebar/project/scenarios-list/index.tsx index ca514d47ac..0110410b73 100644 --- a/app/layout/project/sidebar/project/scenarios-list/index.tsx +++ b/app/layout/project/sidebar/project/scenarios-list/index.tsx @@ -100,6 +100,7 @@ export const ScenariosList: React.FC = () => { } ); await queryClient.invalidateQueries(['scenarios', pid]); + await queryClient.invalidateQueries(['all-features', pid]); setDelete(null); }, onError: () => {