Skip to content

Commit

Permalink
#5368 - An error appears in the Console, when dragging a bond between…
Browse files Browse the repository at this point in the history
… any monomers
  • Loading branch information
rrodionov91 committed Sep 12, 2024
1 parent d4f3e84 commit 298a83f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/ketcher-macromolecules/src/EditorEvents.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,11 @@ export const EditorEvents = () => {
const handleOpenPreview = useCallback(
(e) => {
const polymerBond = e.target.__data__?.polymerBond;

if (polymerBond && !polymerBond.finished) {
return;
}

if (polymerBond) {
const style = calculateBondPreviewPosition(
polymerBond,
Expand Down

0 comments on commit 298a83f

Please sign in to comment.