mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-10-26 19:01:39 -04:00
Resetting page to 0 when changing domains.
This commit is contained in:
parent
d5942e56df
commit
ce8c41c8eb
1 changed files with 3 additions and 4 deletions
|
|
@ -286,12 +286,11 @@ function Archives() {
|
|||
searchStr,
|
||||
setSearchStr,
|
||||
setOrderBy,
|
||||
fetchArchives
|
||||
} =
|
||||
useSearchArchives(24, domain, searchOrder);
|
||||
fetchArchives,
|
||||
} = useSearchArchives(24, domain, searchOrder);
|
||||
const setView = (value) => updateQuery({view: value});
|
||||
const view = searchParams.get('view');
|
||||
const setDomain = (value) => updateQuery({'domain': value});
|
||||
const setDomain = (value) => updateQuery({'domain': value, 'o': 0});
|
||||
|
||||
const archiveOrders = [
|
||||
{key: '-date', value: '-date', text: 'Newest'},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue