Skip to content

[Bug]: Undefined pause() call in Block.updateBounds #6038

@ssz2605

Description

@ssz2605

Description

While interacting with blocks (especially during collapse/expand operations or after importing multiple blocks), the console throws a runtime error originating from block.js.

The error occurs inside the updateBounds() function where that.pause(delayTime) is called, but pause() is not defined on the Block object.

This leads to an uncaught promise rejection and interrupts rendering logic.

Expected Behavior

The retry logic inside updateBounds() should delay execution and retry updating bounds without throwing errors.

Block rendering and collapse/expand behavior should work without console errors.

How to Reproduce

1.Run Music Blocks locally using:
npm run dev
2. Create or import multiple blocks (larger stacks increase likelihood).
3. Collapse or expand blocks.
4. Observe the browser console.

Console log Errors:

Image

Environment:

  • Operating System: Windows
  • Browser (if applicable): Chrome
  • Version of Software/Project: v3

Checklist

  • I have read and followed the project's code of conduct.
  • I have searched for similar issues before creating this one.
  • I have provided all the necessary information to understand and reproduce the issue.
  • I am willing to contribute to the resolution of this issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions