From 3ad484001af256376c2af4b79c4754b71a750dbd Mon Sep 17 00:00:00 2001 From: Bruno Charest Date: Fri, 29 May 2026 15:57:50 -0400 Subject: [PATCH] =?UTF-8?q?fix:=20advancedSearchOffset=20=E2=86=92=20state?= =?UTF-8?q?.advancedSearchOffset=20+=20openFile=20dans=20dashboard.js?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/js/dashboard.js | 2 +- frontend/js/viewer.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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); }); });