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 {
|
return {
|
||||||
filters: {
|
filters: {
|
||||||
listened:
|
listened: !!filters.listened,
|
||||||
filters.listened === undefined ? true : filters.listened,
|
listening: !!filters.listening,
|
||||||
listening:
|
unlistened: !!filters.unlistened,
|
||||||
filters.listening === undefined ? true : filters.listening,
|
|
||||||
unlistened:
|
|
||||||
filters.unlistened === undefined ? true : filters.unlistened,
|
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
} catch {
|
} catch {
|
||||||
|
Loading…
Reference in New Issue
Block a user