From 8fe21574c644543fef55a2d515681d23fdfce508 Mon Sep 17 00:00:00 2001 From: ElayAharoni <62550608+ElayAharoni@users.noreply.github.com> Date: Thu, 23 Jan 2025 00:21:20 +0200 Subject: [PATCH] fix(frontend): fixes Default pipeline input params are missing from the GUI. Fixes #11515 (#11518) Signed-off-by: Elay Aharoni (EXT-Nokia) Co-authored-by: Elay Aharoni (EXT-Nokia) --- frontend/src/components/NewRunParametersV2.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/components/NewRunParametersV2.tsx b/frontend/src/components/NewRunParametersV2.tsx index 1fced87abf7..003873e9a8c 100644 --- a/frontend/src/components/NewRunParametersV2.tsx +++ b/frontend/src/components/NewRunParametersV2.tsx @@ -205,7 +205,7 @@ function NewRunParametersV2(props: NewRunParametersProps) { let allParamtersWithDefault = true; let errMsg: string[] = []; Object.keys(specParameters).forEach(key => { - if (specParameters[key].defaultValue) { + if (specParameters[key].defaultValue !== undefined) { // TODO(zijianjoy): Make sure to consider all types of parameters. // Convert default value to string type first to avoid error from convertInput runtimeParametersWithDefault[key] = convertNonUserInputParamToString(