fix(frontend): allow empty strings for protocols

pull/80/head
Samuel Rowe 3 years ago
parent c8c298ac3b
commit 3f486ed42c

@ -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.`
);

Loading…
Cancel
Save