From 3f486ed42caffee8516252726e7115082bbab3e1 Mon Sep 17 00:00:00 2001 From: Samuel Rowe Date: Fri, 29 Jul 2022 14:44:16 +0530 Subject: [PATCH] fix(frontend): allow empty strings for protocols --- services/frontend/src/components/Modal/service/form-utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/frontend/src/components/Modal/service/form-utils.ts b/services/frontend/src/components/Modal/service/form-utils.ts index e7aa43b..286b6a5 100644 --- a/services/frontend/src/components/Modal/service/form-utils.ts +++ b/services/frontend/src/components/Modal/service/form-utils.ts @@ -129,7 +129,7 @@ export const getInitialValues = (node?: IServiceNodeItem): IEditServiceForm => { .substring(0, slashIndex) .split(":"); - if (!["tcp", "udp"].includes(protocol)) { + if (!["", "tcp", "udp"].includes(protocol)) { throw new Error( `Invalid protocol "${protocol}" found while deserializing.` );