From 075970b293cc5d7587451a057c04285b4e2dad9d Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 29 Dec 2025 13:05:38 +0000 Subject: [PATCH] Add watcher to handle dynamic section changes in SideBar component Co-authored-by: JDB321Sailor <212125521+JDB321Sailor@users.noreply.github.com> --- src/components/Workspace/SideBar.vue | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/components/Workspace/SideBar.vue b/src/components/Workspace/SideBar.vue index 213c447c..e312f326 100644 --- a/src/components/Workspace/SideBar.vue +++ b/src/components/Workspace/SideBar.vue @@ -59,6 +59,17 @@ export default { }); }, }, + watch: { + /* Update isOpen array when filtered sections change */ + filteredSections(newSections) { + // Resize isOpen array if needed + const currentLength = this.isOpen.length; + const newLength = newSections.length; + if (newLength !== currentLength) { + this.isOpen = new Array(newLength).fill(false); + } + }, + }, components: { SideBarItem, SideBarSection,