diff --git a/packages/ketcher-macromolecules/src/components/monomerLibrary/RnaPresetGroup/RnaPresetGroup.tsx b/packages/ketcher-macromolecules/src/components/monomerLibrary/RnaPresetGroup/RnaPresetGroup.tsx index 11ab8e4bd4..02d9e63e22 100644 --- a/packages/ketcher-macromolecules/src/components/monomerLibrary/RnaPresetGroup/RnaPresetGroup.tsx +++ b/packages/ketcher-macromolecules/src/components/monomerLibrary/RnaPresetGroup/RnaPresetGroup.tsx @@ -16,6 +16,7 @@ import { calculateNucleosideOrNucleotidePreviewTop } from 'helpers'; import { useAppSelector } from 'hooks'; +import { MonomerItemType } from 'ketcher-core'; import { debounce } from 'lodash'; import { MouseEvent, useCallback, useMemo } from 'react'; import { @@ -96,7 +97,11 @@ export const RnaPresetGroup = ({ presets, duplicatePreset, editPreset }) => { if (preview.nucleotide || !e.currentTarget) { return; } - const nucleotideParts = [preset.sugar, preset.base, preset.phosphate]; + const nucleotideParts: ReadonlyArray = [ + preset.sugar, + preset.base, + preset.phosphate, + ]; const cardCoordinates = e.currentTarget.getBoundingClientRect(); const previewStyle = calculateNucleosideOrNucleotidePreviewTop(cardCoordinates);