Skip to content

Commit

Permalink
#5196 - Preview: An error appears in the Console when opening any sec…
Browse files Browse the repository at this point in the history
…tion in the RNA tab
  • Loading branch information
rrodionov91 committed Aug 8, 2024
1 parent 5e94631 commit 822de5a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/ketcher-macromolecules/src/helpers/rnaValidations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ export const getValidations = (
const phosphateValidations: string[] = [];
const baseValidations: string[] = [];

if (newPreset.phosphate) {
if (newPreset?.phosphate) {
sugarValidations.push('R2');
}
if (newPreset.base) {
if (newPreset?.base) {
sugarValidations.push('R3');
}
baseValidations.push('R1');
Expand Down

0 comments on commit 822de5a

Please sign in to comment.