diff --git a/frontend/js/dashboard.js b/frontend/js/dashboard.js index 47ba96d..b1f89d7 100644 --- a/frontend/js/dashboard.js +++ b/frontend/js/dashboard.js @@ -2,7 +2,7 @@ import { api } from './auth.js'; import { state } from './state.js'; import { escapeHtml, safeCreateIcons, getFileIcon } from './utils.js'; -import { icon } from './viewer.js'; +import { icon, openFile } from './viewer.js'; import { TabManager, showToast } from './ui.js'; // --------------------------------------------------------------------------- diff --git a/frontend/js/viewer.js b/frontend/js/viewer.js index ef72ecd..a7525ee 100644 --- a/frontend/js/viewer.js +++ b/frontend/js/viewer.js @@ -1026,7 +1026,7 @@ async function loadSavedSearches() { const vault = s.vault || "all"; if (input) { input.dispatchEvent(new Event("input")); } clearTimeout(state.searchTimeout); - advancedSearchOffset = 0; + state.advancedSearchOffset = 0; performAdvancedSearch(s.query, vault, null); }); });