Skip to content

Commit a5dbcbf

Browse files
committed
remove initialValuesRaw
1 parent adbbf5a commit a5dbcbf

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cyclops-ui/src/components/shared/CreateModule/CreateModule.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ export const CreateModuleComponent = ({
111111
const [template, setTemplate] = useState<templateStoreOption>();
112112

113113
const [initialValues, setInitialValues] = useState({});
114-
const [initialValuesRaw, setInitialValuesRaw] = useState({});
114+
// const [initialValuesRaw, setInitialValuesRaw] = useState({});
115115

116116
const [error, setError] = useState({
117117
message: "",
@@ -234,7 +234,7 @@ export const CreateModuleComponent = ({
234234
dependencies: [],
235235
});
236236
form.setFieldsValue({});
237-
setInitialValuesRaw({});
237+
// setInitialValuesRaw({});
238238
setInitialValues({});
239239

240240
setLoadingTemplate(true);
@@ -277,7 +277,7 @@ export const CreateModuleComponent = ({
277277
.then((res) => {
278278
let initialValuesMapped = mapsToArray(tmpConfig.root.properties, res);
279279

280-
setInitialValuesRaw(res);
280+
// setInitialValuesRaw(res);
281281
setInitialValues(initialValuesMapped);
282282
form.setFieldsValue(initialValuesMapped);
283283

0 commit comments

Comments
 (0)