Skip to content

Commit

Permalink
Fix roll back
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexeyGirin committed Jan 11, 2025
1 parent 3679fe1 commit 94431e9
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions packages/ketcher-core/src/application/editor/tools/Bond.ts
Original file line number Diff line number Diff line change
Expand Up @@ -618,16 +618,16 @@ class PolymerBond implements BaseTool {
) {
return true;
}
if (
(firstMonomer instanceof RNABase &&
secondMonomer instanceof Sugar &&
secondMonomer.isAttachmentPointExistAndFree(AttachmentPointName.R3)) ||
(secondMonomer instanceof RNABase &&
firstMonomer instanceof Sugar &&
firstMonomer.isAttachmentPointExistAndFree(AttachmentPointName.R3))
) {
return true;
}
// if (
// (firstMonomer instanceof RNABase &&
// secondMonomer instanceof Sugar &&
// secondMonomer.isAttachmentPointExistAndFree(AttachmentPointName.R3)) ||
// (secondMonomer instanceof RNABase &&
// firstMonomer instanceof Sugar &&
// firstMonomer.isAttachmentPointExistAndFree(AttachmentPointName.R3))
// ) {
// return true;
// }

// Modal: special case for Peptide chain
if (secondMonomer instanceof Peptide && firstMonomer instanceof Peptide) {
Expand Down

0 comments on commit 94431e9

Please sign in to comment.