mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-04-20 19:02:15 +00:00
check for event.value removed
This commit is contained in:
parent
4326f23db6
commit
a900d56881
1 changed files with 2 additions and 2 deletions
|
|
@ -19,11 +19,11 @@ const useSort = (urlParams, queryParams) => {
|
|||
if (a[sortProp] > b[sortProp]) return 1;
|
||||
return 0;
|
||||
};
|
||||
selectInput = {
|
||||
const selectInput = {
|
||||
selected: [sort],
|
||||
options: [{ label: 'A-Z', value: 'a-z' }, { label: 'Recent', value: 'recent' }, { label: 'Year', value: 'year' }],
|
||||
onSelect: (event) => {
|
||||
const nextQuery = new URLSearchParams({ sort: typeof event.value === 'string' ? event.value : '' });
|
||||
const nextQuery = new URLSearchParams({ sort: event.value });
|
||||
window.location.replace(`#/library/${urlParams.type || DEFAULT_TYPE}?${nextQuery}`);
|
||||
}
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue