mirror of
https://github.com/pewdiepie-archdaemon/odysseus.git
synced 2026-06-15 17:25:26 -04:00
fix(notes): reset search filter on panel reopen so stale query doesn't hide notes (#2920)
This commit is contained in:
@@ -1099,6 +1099,9 @@ export function openPanel() {
|
||||
if (_open) return;
|
||||
_open = true;
|
||||
_editingId = null;
|
||||
// Reset the search filter — the rebuilt pane's search input renders empty, so a
|
||||
// stale _searchQuery would silently hide non-matching notes after a reopen.
|
||||
_searchQuery = '';
|
||||
_clearViewedReminderGlows();
|
||||
_firedDotDismissedAt = Date.now();
|
||||
try { localStorage.setItem(REMINDER_DISMISSED_AT_KEY, String(_firedDotDismissedAt)); } catch {}
|
||||
|
||||
Reference in New Issue
Block a user