fix: 🐛 fix reading filters (fix #231)
All checks were successful
repod / xml (push) Successful in 23s
repod / php (push) Successful in 1m0s
repod / nodejs (push) Successful in 1m19s
repod / release (push) Has been skipped

This commit is contained in:
Michel Roux 2024-12-24 18:56:04 +01:00
parent df4ea17403
commit c768d1b620

View File

@ -7,10 +7,6 @@ export const useSettings = defineStore('settings', {
try { try {
const filters = JSON.parse(getCookie('repod.filters') || '{}') || {} const filters = JSON.parse(getCookie('repod.filters') || '{}') || {}
if (!filters.length) {
throw new Error('Empty cookie')
}
return { return {
filters: { filters: {
listened: filters.listened, listened: filters.listened,