feat: make search filters independent per tab while maintaining persistence

This commit is contained in:
Christian Vidal Wolf
2026-04-24 16:09:49 +02:00
parent f2ed303fed
commit 8d00b7372f
7 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -21,7 +21,7 @@ export function ProductDescriptions({ data, headers, asinColumnIndex, onEdit, ro
// Description columns that should only have Present/Missing filters
const DESCRIPTION_COLUMNS = [COLUMNS.LONG_DE, COLUMNS.LONG_EN, COLUMNS.SHORT_DE, COLUMNS.SHORT_EN, COLUMNS.DETAILS_DE, COLUMNS.DETAILS_EN];
const [activeTab, setActiveTab] = usePersistentState<string>('descriptions-tab', 'all');
const [search, setSearch] = usePersistentState('global-search', '');
const [search, setSearch] = usePersistentState('descriptions-search', '');
const [lineFilter, setLineFilter] = usePersistentState('descriptions-lineFilter', '');
const [licenseFilter, setLicenseFilter] = usePersistentState('descriptions-licenseFilter', '');
const [sortCol, setSortCol] = usePersistentState<number | null>('descriptions-sortCol', null);