|
|
|
@ -1,4 +1,3 @@
|
|
|
|
import lodash from "lodash";
|
|
|
|
|
|
|
|
import * as yup from "yup";
|
|
|
|
import * as yup from "yup";
|
|
|
|
import { IEditNetworkForm, INetworkNodeItem } from "../../../types";
|
|
|
|
import { IEditNetworkForm, INetworkNodeItem } from "../../../types";
|
|
|
|
|
|
|
|
|
|
|
|
@ -128,8 +127,8 @@ export const getFinalValues = (
|
|
|
|
const { labels, driver, configurations, options } = values;
|
|
|
|
const { labels, driver, configurations, options } = values;
|
|
|
|
|
|
|
|
|
|
|
|
return {
|
|
|
|
return {
|
|
|
|
key: "network",
|
|
|
|
key: previous?.key ?? "network",
|
|
|
|
type: "NETWORK",
|
|
|
|
type: previous?.type ?? "NETWORK",
|
|
|
|
inputs: previous?.inputs ?? [],
|
|
|
|
inputs: previous?.inputs ?? [],
|
|
|
|
outputs: previous?.outputs ?? [],
|
|
|
|
outputs: previous?.outputs ?? [],
|
|
|
|
config: (previous as any)?.config ?? {},
|
|
|
|
config: (previous as any)?.config ?? {},
|
|
|
|
|