From dc57d358eb593d62e25efc8ba5e72b2744ce2068 Mon Sep 17 00:00:00 2001 From: dobby-d-elf Date: Wed, 20 May 2026 10:02:46 -0600 Subject: [PATCH] fix test --- static/panels.js | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/static/panels.js b/static/panels.js index ac518302..75353a22 100644 --- a/static/panels.js +++ b/static/panels.js @@ -4490,14 +4490,13 @@ async function switchToWorkspace(path,name){ let _profilesCache = null; let _profileSwitchGeneration = 0; -function _profileSwitchPanelLoad(){ - if (_currentPanel === 'skills') return loadSkills(); - if (_currentPanel === 'memory') return loadMemory(); - if (_currentPanel === 'tasks') return loadCrons(); - if (_currentPanel === 'kanban') return loadKanban(); - if (_currentPanel === 'profiles') return loadProfilesPanel(); - if (_currentPanel === 'workspaces') return loadWorkspacesPanel(); - return Promise.resolve(); +async function _profileSwitchPanelLoad(){ + if (_currentPanel === 'skills') await loadSkills(); + if (_currentPanel === 'memory') await loadMemory(); + if (_currentPanel === 'tasks') await loadCrons(); + if (_currentPanel === 'kanban') await loadKanban(); + if (_currentPanel === 'profiles') await loadProfilesPanel(); + if (_currentPanel === 'workspaces') await loadWorkspacesPanel(); } function _refreshProfileSwitchBackground(gen){