From 302c6dd02e0d3d86ca660732ecc3ac9dfeb88546 Mon Sep 17 00:00:00 2001 From: Ran Byron Date: Mon, 2 Sep 2019 16:29:56 +0300 Subject: [PATCH] Fix number param value normlization (#4116) --- client/app/components/ParameterValueInput.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/app/components/ParameterValueInput.jsx b/client/app/components/ParameterValueInput.jsx index 49e206c3d0..fa5b411091 100644 --- a/client/app/components/ParameterValueInput.jsx +++ b/client/app/components/ParameterValueInput.jsx @@ -140,7 +140,7 @@ class ParameterValueInput extends React.Component { const { className } = this.props; const { value } = this.state; - const normalize = val => !isNaN(val) && val || 0; + const normalize = val => (isNaN(val) ? undefined : val); return (