From a6e6ed83dac17c82dc7652ef4f2e84c47aada168 Mon Sep 17 00:00:00 2001 From: Michel Roux Date: Tue, 24 Dec 2024 19:09:45 +0100 Subject: [PATCH] fix: :ambulance: fix settings (again oups) --- src/store/settings.ts | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/store/settings.ts b/src/store/settings.ts index d529880..da94329 100644 --- a/src/store/settings.ts +++ b/src/store/settings.ts @@ -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 {