feat(platform): show active history filters
This commit is contained in:
@@ -196,7 +196,12 @@ export default function App() {
|
||||
}
|
||||
setActiveProtocol(nextFilters.protocol ?? '');
|
||||
setHistoryTab(tab);
|
||||
replaceHistoryHash(nextFilters, tab);
|
||||
const { keyword, protocol, ...restFilters } = nextFilters;
|
||||
const routeFilters = { ...restFilters };
|
||||
if (tab && tab !== 'location') {
|
||||
routeFilters.tab = tab;
|
||||
}
|
||||
replaceHash('history', keyword ?? analysisVin, protocol, routeFilters);
|
||||
};
|
||||
|
||||
const replaceHistoryHash = (filters: Record<string, string> = {}, tab = historyTab) => {
|
||||
|
||||
Reference in New Issue
Block a user