Skip to content

Error occurs on click of "Remove Explicit Hydrogens" in reaction #2755

@Zhirnoff

Description

@Zhirnoff

Summary
An error appears on attempt to Remove hydrogens. The Add hydrogens works correctly.

Steps to Reproduce

  1. Load a reaction from a KET file onto the canvas. ket-cascade-reaction-3-1-2-1-1.zip
  2. Click "Add/Remove Explicit Hydrogens" and verify the reaction updates correctly
  3. Click "Remove Explicit Hydrogens" again.

Actual behavior
The first click works correctly, but the second click produces an error.
The error message states: "Given string could not be loaded as (query or plain) molecule or reaction, see the error messages: 'molecule json loader: Not a molecule. Found 3 arrows.'"

Image

Expected behavior
Explicit hydrogens should be removed correctly on repeated actions, with no errors.

Desktop:

  • OS: Windows 11
  • Browser Chrome
  • Version 131.0.6778.205 (Official Build) (64-bit)

Ketcher version
[Version 3.0.0-rc.1]
Indigo version
[Version 1.27.0-dev.3]

Additional context
Bug found by autotest Reactions/Reaction-tools/Multi-Tailed-Arrow-Tool/multi-tailed-arrow-tool.spec.ts:3852

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions