fix: 🐛 fix reading filters (fix #231)
This commit is contained in:
parent
df4ea17403
commit
c768d1b620
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user