From a857a56339ea91d20cb2007a16d09a6adbfc931e Mon Sep 17 00:00:00 2001
From: "mathias.chouet" <mathias.chouet@irstea.fr>
Date: Thu, 10 Oct 2019 16:59:10 +0200
Subject: [PATCH] Formulaire: clear results before triggering calculation

---
 src/app/components/generic-calculator/calculator.component.ts | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/app/components/generic-calculator/calculator.component.ts b/src/app/components/generic-calculator/calculator.component.ts
index a7034fa79..ac913fc3d 100644
--- a/src/app/components/generic-calculator/calculator.component.ts
+++ b/src/app/components/generic-calculator/calculator.component.ts
@@ -295,6 +295,7 @@ export class GenericCalculatorComponent implements OnInit, DoCheck, AfterViewChe
     }
 
     public doCompute() {
+        this._formulaire.resetResults([]);
         this.appComponent.showProgressBar = true;
         this._computeClicked = true;
         setTimeout(() => {
-- 
GitLab