From b2dfb63ee78f98f6cd8f82a2ca399f55e01341cb Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Fran=C3=A7ois=20Grand?= <francois.grand@inrae.fr>
Date: Tue, 16 May 2023 15:09:50 +0200
Subject: [PATCH] fix: predams results: do not show fixed parameters in case of
 error

refs #614
---
 src/app/results/prebarrage-results.ts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/app/results/prebarrage-results.ts b/src/app/results/prebarrage-results.ts
index 411c4edd7..b5f894b70 100644
--- a/src/app/results/prebarrage-results.ts
+++ b/src/app/results/prebarrage-results.ts
@@ -127,7 +127,7 @@ export class PrebarrageResults extends MultiDimensionResults implements IObserva
     }
 
     public get hasWallResults(): boolean {
-        return this.cloisonResults  && this.cloisonResults.result && ! this.cloisonResults.result.hasOnlyErrors;
+        return this.cloisonResults?.result?.ok;
     }
 
     /** retourne true si au moins un calcul a échoué (le log a un code négatif) */
-- 
GitLab