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 begining of sequence on another preset (C) wipes out entire sequence #5247

Closed AlexeyGirin closed 2 months ago

AlexeyGirin commented 2 months ago

NOTE: Very common problem with all types of monomer

Steps to Reproduce

  1. Go to Macromolecules mode - Sequence mode
  2. Load from file: Replacement of preset at the begining of sequence on another preset (C) wipes out entire sequence.zip image
  3. Select first monomer (in EDIT mode) image
  4. Go to Library - RNA tab - Presets
  5. Click on C preset

Actual behavior Entire sequence disappears image If you switch to flex mode - you found corrupted canvas image

Expected behavior A preset replaced with C preset 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