fix(frontend): removed any casts in form utils

pull/81/head
Samuel Rowe 3 years ago
parent 2791d784c1
commit 49af8559bd

@ -97,7 +97,6 @@ export const getInitialValues = (node?: IServiceNodeItem): IEditServiceForm => {
const environment0: string[] = checkArray(environment, "environment");
const volumes0: string[] = checkArray(volumes, "volumes");
const ports0: string[] = checkArray(ports, "ports");
const labels0: string[] = checkArray(labels, "labels");
const [imageName, imageTag] = (image ?? ":").split(":");
return {

@ -54,9 +54,12 @@ export const getFinalValues = (
return {
key: previous?.key ?? "volume",
type: "VOLUME",
position: {
left: 0,
top: 0
},
inputs: previous?.inputs ?? [],
outputs: previous?.outputs ?? [],
config: (previous as any)?.config ?? {},
canvasConfig: {
node_name: values.entryName
},
@ -66,7 +69,7 @@ export const getFinalValues = (
labels.map((label) => [label.key, label.value])
)
}
} as any;
};
};
export const tabs = [

Loading…
Cancel
Save