From e101bf1208b7dad5e5dcd2911656e3b69b1983dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Stan=C4=9Bk?= Date: Fri, 6 Sep 2024 22:58:17 +0200 Subject: [PATCH] fix(ui): fixes empty string value in pipeline parameters (#11175) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jan Staněk Co-authored-by: Jan Staněk --- frontend/src/components/NewRunParametersV2.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/frontend/src/components/NewRunParametersV2.tsx b/frontend/src/components/NewRunParametersV2.tsx index e864bd1e81dc..1fced87abf77 100644 --- a/frontend/src/components/NewRunParametersV2.tsx +++ b/frontend/src/components/NewRunParametersV2.tsx @@ -70,8 +70,7 @@ const protoMap = new Map([ ]); function convertInput(paramStr: string, paramType: ParameterType_ParameterTypeEnum): any { - // TBD (jlyaoyuli): Currently, empty string is not allowed. - if (paramStr === '') { + if (paramStr === '' && paramType !== ParameterType_ParameterTypeEnum.STRING) { return undefined; } switch (paramType) {