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;
}),
profiles: profiles ?? [],
labels: labels
? Object.entries(labels as any).map(([key, value]: any) => ({
key,
value
}))
: []
profiles: profiles ?? initialValues.profiles,
labels:
extractObjectOrArray("=", "key", "value", labels) ?? initialValues.labels
};
};

Loading…
Cancel
Save