Description
The application crashes with a TypeError when closing the Code/JS View panel (< | >), but only if the code inside has been clicked or modified.
Steps to Reproduce
- Open the Code View by clicking the
< | > button.
- Click inside the code editor or make a small change (e.g., add a space).
- Click the 'X' or the toggle button to close the panel.
- Result: The app crashes immediately.
Expected Behavior
The panel should close smoothly without error, regardless of whether the code was edited.
Log ( ScreenShot )
