epam / ketcher

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

Preview: Select Connection Points dialog preview frame shouldn't be blank for unknown monomer #4949

Open AlexeyGirin opened 1 day ago

AlexeyGirin commented 1 day ago

Steps to Reproduce

  1. Go to Macromolecules mode - Flex mode
  2. Load using paste from clipboard IDT type: /i2AmPr/ image
  3. Put any CHEM on the canvas
  4. Connect them by bond (center-to-center)

Actual behavior System opens Select Connection Points dialog having preview frame blank for unknown monomer image

Expected behavior System opens Select Connection Points dialog having preview frame with question mark (taken from preview tooltip) image

As agreed with @AlexanderSavelyev and @vanoprenko

Versions

Issue found while testing - https://github.com/epam/ketcher/issues/4431