fix: not updating sort/location
This commit is contained in:
1 parent
7a76ed93a5
commit
952a75c891
2 files changed
+4
-1
No files matched your search
@@ -16,6 +16,9 @@
|
||||
export let changeDefault: boolean = false
|
||||
|
||||
let sort: string = selected.startsWith('Top') ? 'TopAll' : selected
|
||||
$: if (selected) {
|
||||
sort = selected.startsWith('Top') ? 'TopAll' : selected
|
||||
}
|
||||
const setSelected = () => (selected = sort)
|
||||
$: changeDefault
|
||||
? ($userSettings.defaultSort.sort = selected as SortType)
|
||||
|
||||
Reference in new issue
Block a user