Revert "fix: 🎨 simplify undefined test for filters"
Some checks failed
repod / release (push) Waiting to run
repod / xml (push) Successful in 16s
repod / php (push) Successful in 1m16s
repod / nodejs (push) Has been cancelled

This reverts commit c37783d814.
This commit is contained in:
Michel Roux 2025-01-03 14:16:50 +01:00
parent b33a0fdb40
commit 2546df30fc

View File

@ -9,9 +9,12 @@ export const useSettings = defineStore('settings', {
return {
filters: {
listened: !!filters.listened,
listening: !!filters.listening,
unlistened: !!filters.unlistened,
listened:
filters.listened === undefined ? true : filters.listened,
listening:
filters.listening === undefined ? true : filters.listening,
unlistened:
filters.unlistened === undefined ? true : filters.unlistened,
},
}
} catch {