Skip to content

[Bug] Cannot destructure property 'annotation' of 'this.editData' as it is undefined #1858

Open
@tokyobordel

Description

@tokyobordel

Describe the Bug

If you put Label on canvas, then call the cancelActiveManipulations function while the "Label" tool is active, this error will occur.

Steps to Reproduce

  1. Place Label on Canvas
  2. Call cancelActiveManipulations

The current behavior

LabelTool.js:182 Uncaught TypeError: Cannot destructure property 'annotation' of 'this.editData' as it is undefined.
at LabelTool.cancel (LabelTool.js:182:25)
at Module.cancelActiveManipulations (cancelActiveManipulations.js:11:1)

The expected behavior

No errors

OS

Windows 10 x64

Node version

20.18.3

Browser

Google Chrome

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions