Skip to content

Commit ff1bc71

Browse files
committed
- fixed saving
1 parent 61584fe commit ff1bc71

2 files changed

Lines changed: 2 additions & 5 deletions

File tree

packages/ketcher-react/src/script/ui/views/components/MonomerCreationWizard/MonomerCreationWizard.tsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1260,10 +1260,7 @@ const MonomerCreationWizardInternal = ({
12601260
const structure = editor.structSelected(wizardState.structure);
12611261
const { values: valuesToSave } = wizardState;
12621262
const { errors: inputsErrors, notifications: inputsNotifications } =
1263-
validateInputs(
1264-
valuesToSave,
1265-
monomerCreationState.editInstanceInitialValues?.editMode === 'all',
1266-
);
1263+
validateInputs(valuesToSave);
12671264
if (Object.keys(inputsErrors).length > 0) {
12681265
wizardStateDispatch({ type: 'SetErrors', errors: inputsErrors });
12691266
wizardStateDispatch({

packages/ketcher-react/src/script/ui/views/components/MonomerCreationWizard/MonomerCreationWizard.utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ export const getEditAllInstancesInitialValues = (
129129
monomer: BaseMonomer,
130130
monomersLibraryParsedJson?: MonomersLibraryParsedJson | null,
131131
): MonomerCreationInitialValues => {
132-
const initialValues = getInitialValues(monomer, false);
132+
const initialValues = getInitialValues(monomer, true);
133133
const monomerTemplateRef = getMonomerTemplateRefFromMonomerItem(
134134
monomer.monomerItem,
135135
);

0 commit comments

Comments
 (0)