From 86d1b5f8984d12ba2af37fd90d6fb13778e6196a Mon Sep 17 00:00:00 2001 From: NguyenND Date: Fri, 17 Apr 2026 17:23:46 -0400 Subject: [PATCH] 04/17/2026 fix sidebar Security issue --- app/static/js/vault.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/app/static/js/vault.js b/app/static/js/vault.js index 9561861..f791f0e 100644 --- a/app/static/js/vault.js +++ b/app/static/js/vault.js @@ -307,6 +307,14 @@ const Vault = (() => { const sectionsEl = document.getElementById('security-sections'); if (!summaryEl || !sectionsEl) return; + // If vault hasn't loaded yet, wait for it then re-render + if (!_items.length && VaultSession.getKey()) { + summaryEl.innerHTML = '
Loading…
'; + sectionsEl.innerHTML = ''; + loadVault().then(() => renderSecurityDashboard()); + return; + } + const pwItems = _items.filter(i => i.item_type === 'password' && i.plain?.password); if (!pwItems.length) { summaryEl.innerHTML = '
No passwords to analyze.
';