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 (#5256)
  • Loading branch information
rrodionov91 authored Aug 8, 2024
1 parent 9044f9d commit d8ee4f6
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 d8ee4f6

Please sign in to comment.