Skip to content

Workspace cleanUp() method breaks event group #9264

@michaela-mm

Description

@michaela-mm

Check for duplicates

  • I have searched for similar issues before opening a new one.

Description

The workspace cleanUp() function creates a new event group for itself, but doesn't check whether a group already exists. This seems an oversight, since other places in code do have this check when relevant.

Reproduction steps

  1. Write a function that creates an event group, does something observable, calls workspace.cleanUp(), and then does something observable.
  2. Run this function in playground.
  3. Undo. Observe that only part of the actions are undone.

Expected behavior: the whole action is undone as one step.

Stack trace

Screenshots

No response

Browsers

No response

Metadata

Metadata

Labels

issue: bugDescribes why the code or behaviour is wrong

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions