From fb0a9d828784bd6dfb7239563d4ef153b613059f Mon Sep 17 00:00:00 2001 From: Pierre Hubert Date: Fri, 25 Aug 2023 14:44:14 +0200 Subject: [PATCH] Remove success and error banners when attempting a new import --- geneit_app/src/routes/family/FamilySettingsRoute.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/geneit_app/src/routes/family/FamilySettingsRoute.tsx b/geneit_app/src/routes/family/FamilySettingsRoute.tsx index da0d328..c81e927 100644 --- a/geneit_app/src/routes/family/FamilySettingsRoute.tsx +++ b/geneit_app/src/routes/family/FamilySettingsRoute.tsx @@ -193,6 +193,9 @@ function FamilyExportCard(): React.ReactElement { }); if (file === null) return; + setError(undefined); + setSuccess(undefined); + loading.show("Restauration des données de la famille en cours..."); await DataApi.ImportData(family.familyId, file);