feat(frontend): updated to labels in both short and long form for top-level service objects

pull/85/head
Samuel Rowe 3 years ago
parent 3117cc2eb9
commit 4c180a8760

@ -396,13 +396,9 @@ export const getInitialValues = (node?: IServiceNodeItem): IEditServiceForm => {
return { hostPort, containerPort, protocol } as any; return { hostPort, containerPort, protocol } as any;
}), }),
profiles: profiles ?? [], profiles: profiles ?? initialValues.profiles,
labels: labels labels:
? Object.entries(labels as any).map(([key, value]: any) => ({ extractObjectOrArray("=", "key", "value", labels) ?? initialValues.labels
key,
value
}))
: []
}; };
}; };

Loading…
Cancel
Save