epam / ketcher

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

An error appears in the Console, when collapsing and expanding a screen with a template, that has AP, in Macro #5540

Open ViktoriaTkacheva opened 2 days ago

ViktoriaTkacheva commented 2 days ago

Steps to Reproduce

  1. Open the Console

  2. Draw any template on the canvas

  3. Switch to the Macro mode and switch to the Micro mode again

  4. Add one attachment point to a template via the Right-click menu

    image
  5. Switch to the Macro mode

  6. Collapse and expand a screen

    image

Actual behavior There is an error in the Console: main.571c1a54.js:2 Uncaught TypeError: Cannot use 'in' operator to search for 'getVBoxObj' in undefined at main.571c1a54.js:2:1435655 at Array.forEach () at Function.value (main.571c1a54.js:2:1435554) at t.value (main.571c1a54.js:2:1590064) at t.value (main.571c1a54.js:2:1594415) at main.571c1a54.js:2:1650128 at Array.forEach () at n.value (main.571c1a54.js:2:1650079) at n.value (main.571c1a54.js:2:1648807) at n.value (main.571c1a54.js:2:1671395)

image image

rc.test.lifescience.opensource.epam.com-1726656901263.log

Expected behavior There is no error in the Console

Screenshots

https://github.com/user-attachments/assets/c8616332-526b-47f9-82cf-3919ca8b60e9

Desktop (please complete the following information):

Ketcher version 2.25.0-rc.2, Build at 2024-09-14; 10:54:23

Indigo version 1.24.0-rc.2.0

ViktoriaTkacheva commented 2 days ago

Added to Refined Backlog after discussion with Roman Rodionov