epam / ketcher

Web-based molecule sketcher
https://lifescience.opensource.epam.com/ketcher/demo.html
Apache License 2.0
474 stars 164 forks source link

Replacement of preset at the end of sequence on preset w/out base works wrong #5248

Closed AlexeyGirin closed 1 month ago

AlexeyGirin commented 2 months ago

Steps to Reproduce

  1. Go to Macromolecules mode - Sequence mode
  2. Load from file: [Uploading Replacement of preset at the end of sequence on preset wout base works wrong.zip…]() image
  3. Create custom preset without base and name it "No base" image
  4. Select last monomer (in view mode) image
  5. Click on "No preset" preset in the library

Actual behavior "Confirm Your Actions" dialog appears image Click YES System replace A preset with p phosphate image

Expected behavior No dialog appears System replace A preset with @ symbol image

As per requirement:

  1. If the user selects any number of monomers in view mode, and clicks on the monomer card in the library, all selected monomer on the canvas are replaced by chosen monomer from the library each

Versions

Related issue - https://github.com/epam/ketcher/issues/4878

AlexeyGirin commented 1 month ago

Fixed. image