diff --git a/services/frontend/src/components/Modal/service/form-utils.ts b/services/frontend/src/components/Modal/service/form-utils.ts index 23f4db5..3438b44 100644 --- a/services/frontend/src/components/Modal/service/form-utils.ts +++ b/services/frontend/src/components/Modal/service/form-utils.ts @@ -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 }; };