diff --git a/packages/ketcher-polymer-editor-react/src/components/monomerLibrary/monomerLibraryGroup/MonomerGroup.tsx b/packages/ketcher-polymer-editor-react/src/components/monomerLibrary/monomerLibraryGroup/MonomerGroup.tsx index c218bc893c..7b0c8890ce 100644 --- a/packages/ketcher-polymer-editor-react/src/components/monomerLibrary/monomerLibraryGroup/MonomerGroup.tsx +++ b/packages/ketcher-polymer-editor-react/src/components/monomerLibrary/monomerLibraryGroup/MonomerGroup.tsx @@ -76,6 +76,18 @@ const MonomerGroup = ({ } }; + const selectMonomer = (monomer: MonomerItemType) => { + switch (libraryName) { + case 'PEPTIDE': + editor.events.selectPeptide.dispatch(monomer); + onItemClick(monomer); + break; + default: + onItemClick(monomer); + break; + } + }; + return ( {title && (