Skip to content

Copy + Paste and then Undo Collapsed Sub process throws JS Errors  #2269

Open
@anandcoupa

Description

@anandcoupa

Describe the Bug

Copy Paste and then Undo of Collapsed Sub process throws following JS Errors
unhandled error in event listener TypeError: Cannot read properties of null (reading 'children')
related to MoveConnectionHandler.js

Steps to Reproduce

  1. Create a sample BPMN consisting of a collapsed subprocess
  2. Do a copy paste of the collapsed subprocess
  3. Notice that the paste operation is successful and if you navigate to newly pasted node, you see the underlying elements from the copied subprocess.
  4. Perform undo (cmd+z or ctrl + z)

Actual:

  • Newly pasted collapsed subprocess stays as is, JS error seen in the console

Please find the attached recording

Screen.Recording.2025-01-07.at.4.36.13.PM_compressed.mp4

Expected Behavior

  • No JS errors thrown
  • Undo functionality works as expected.

Environment

  • Browser: Chrome 129
  • OS: MacOS
  • Library version: v17.11.1

Metadata

Metadata

Assignees

Labels

backlogQueued in backlogbugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions