fix: 🎨 simplify undefined test for filters
This commit is contained in:
parent
46443321d4
commit
c37783d814
@ -9,12 +9,9 @@ export const useSettings = defineStore('settings', {
|
||||
|
||||
return {
|
||||
filters: {
|
||||
listened:
|
||||
filters.listened === undefined ? true : filters.listened,
|
||||
listening:
|
||||
filters.listening === undefined ? true : filters.listening,
|
||||
unlistened:
|
||||
filters.unlistened === undefined ? true : filters.unlistened,
|
||||
listened: !!filters.listened,
|
||||
listening: !!filters.listening,
|
||||
unlistened: !!filters.unlistened,
|
||||
},
|
||||
}
|
||||
} catch {
|
||||
|
Loading…
Reference in New Issue
Block a user