fix: removeTagFilter non importé + null-guard sur _tabBar
Some checks failed
CI / lint (push) Waiting to run
CI / security (push) Successful in 9s
CI / test (push) Has been cancelled
CI / build (push) Has been cancelled

This commit is contained in:
Bruno Charest 2026-05-29 13:41:31 -04:00
parent fe1a2be364
commit 8da6e176f0
3 changed files with 4 additions and 4 deletions

View File

@ -5,7 +5,7 @@ import { safeCreateIcons } from './utils.js';
import { showLoading, el, hideProgressBar, showWelcome, highlightSearchText } from './viewer.js';
import { _getEffective } from './config.js';
import { TabManager, showToast } from './ui.js';
import { addTagFilter, buildSearchResultsHeader, shouldDisplayPath } from './sidebar.js';
import { addTagFilter, buildSearchResultsHeader, shouldDisplayPath, removeTagFilter } from './sidebar.js';
// ---------------------------------------------------------------------------
// Search History Service (localStorage, LIFO, max 50, dedup)
// ---------------------------------------------------------------------------

View File

@ -1094,4 +1094,4 @@ function searchByTag(tag) {
}
export { initVaultContext, setSelectedVaultContext, syncVaultSelectors, shouldDisplayPath, loadVaults, initSidebarFilter, TagFilterService, loadTags, scrollTreeItemIntoView, refreshSidebarForContext, focusVaultInSidebar, refreshTagsForContext, syncActiveFileTreeItem, searchByTag, addTagFilter, buildSearchResultsHeader };
export { initVaultContext, setSelectedVaultContext, syncVaultSelectors, shouldDisplayPath, loadVaults, initSidebarFilter, TagFilterService, loadTags, scrollTreeItemIntoView, refreshSidebarForContext, focusVaultInSidebar, refreshTagsForContext, syncActiveFileTreeItem, searchByTag, addTagFilter, buildSearchResultsHeader, removeTagFilter };

View File

@ -1978,7 +1978,7 @@ export const TabManager = {
if (this._tabs.length === 0) {
this._activeTabId = null;
this._showDashboard();
this._tabBar.hidden = true;
if (this._tabBar) this._tabBar.hidden = true;
} else if (this._activeTabId === tabId) {
// Activate adjacent tab
const newIdx = Math.min(idx, this._tabs.length - 1);
@ -1995,7 +1995,7 @@ export const TabManager = {
this._dirtyTabs.clear();
this._activeTabId = null;
this._showDashboard();
this._tabBar.hidden = true;
if (this._tabBar) this._tabBar.hidden = true;
},
/** Close tabs to the right */