fix: not updating sort/location

This commit is contained in:
Xylight committed 2024-07-20 14:26:39 -07:00
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)