Skip to content

Fix destructuring when tabToRemove is undefined#1196

Open
arnaudchenyensu wants to merge 1 commit intomathuo:masterfrom
arnaudchenyensu:fix/tabToRemove
Open

Fix destructuring when tabToRemove is undefined#1196
arnaudchenyensu wants to merge 1 commit intomathuo:masterfrom
arnaudchenyensu:fix/tabToRemove

Conversation

@arnaudchenyensu
Copy link
Copy Markdown

Description

There was a bug when calling fromJSON, dockview will try to clear the different panels and destructure an undefined variable.

Type of change

  • Bug fix
  • New feature
  • Breaking change
  • Documentation
  • Refactor / cleanup
  • Build / CI / tooling

Affected packages

  • dockview-core
  • dockview (vanilla JS)
  • dockview-react
  • dockview-vue
  • dockview-angular
  • docs

How to test

I had this bug when mounting/unmounting a React root (similar to this bug #845)

Checklist

  • yarn lint:fix passes
  • yarn format passes
  • npm run gen has been run and generated files are up to date
  • yarn test passes
  • I have added or updated tests where applicable
  • Breaking changes are documented

@arnaudchenyensu arnaudchenyensu force-pushed the fix/tabToRemove branch 2 times, most recently from 9ab00cf to c477099 Compare April 17, 2026 10:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant