Wappler Version: 7.0.0 Beta 31
Operating System: Windows 11
Expected behavior
When working on a project with multiple files open (pages and server actions), I expect to be able to close all tabs cleanly—without errors—especially when closing the final remaining tab.
Actual behavior
If I open several pages and server actions and then begin closing them, everything seems fine—until I click on close all. At that point, Wappler throws the following error:
Cannot read properties of null (reading 'jstree')
This happens consistently when closing the last open file. The editor stays open, but the error dialog appears unexpectedly.
How to reproduce
- Open multiple tabs (e.g., several HTML pages and server actions).
- Then close alll actions and pages by clicking on close all in right click context menu.
- When the final tab is closed, the error pops up.
- This occurs whether the final tab is a server action or a regular page.
Screenshot
(See below for the screenshot of the error message)
Notes
- The error doesn’t crash Wappler, but it's disruptive and might indicate a problem in how the file tree or tab management is handled behind the scenes.
- Happy to provide more details or logs if needed.
Let me know if you need anything else!