From 902267586cb98862c27fb57ce68a206558900e3e Mon Sep 17 00:00:00 2001 From: "francois.grand" <francois.grand@irstea.fr> Date: Thu, 19 Apr 2018 15:02:38 +0200 Subject: [PATCH] =?UTF-8?q?=20#77=20correction=20NgParameter.isValid()=20p?= =?UTF-8?q?our=20simplement=20renvoyer=20false=20quand=20l'=C3=A9tat=20n'e?= =?UTF-8?q?st=20pas=20encore=20d=C3=A9fini?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app/formulaire/ngparam.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/app/formulaire/ngparam.ts b/src/app/formulaire/ngparam.ts index 4c464642c..c60586b3b 100644 --- a/src/app/formulaire/ngparam.ts +++ b/src/app/formulaire/ngparam.ts @@ -253,9 +253,12 @@ export class NgParameter extends InputField { case ParamRadioConfig.CAL: return true; + + case undefined: + return false; } - throw "NgParameter.isValid() : valeur de ParamRadioConfig non prise en compte"; + throw new Error(`"NgParameter.isValid() : valeur de ParamRadioConfig '${this.radioState}' (radioState) non prise en compte`); } private static getRadioConfig(s: string) { -- GitLab