Fix being unable to hide side panels in the binding editor again. Already fixed this but got lost in a merge

This commit is contained in:
Andrew Kingston 2024-03-13 12:06:42 +00:00
parent c9c0384c96
commit 886929b8bc
1 changed files with 1 additions and 1 deletions

View File

@ -84,7 +84,7 @@
$: bindingHelpers = new BindingHelpers(getCaretPosition, insertAtPos)
$: {
// Ensure a valid side panel option is always selected
if (!sidePanelOptions.includes(sidePanel)) {
if (sidePanel && !sidePanelOptions.includes(sidePanel)) {
sidePanel = sidePanelOptions[0]
}
}