From 2546df30fca1ad88153b6eaaeb131c09574ff4c4 Mon Sep 17 00:00:00 2001 From: Michel Roux Date: Fri, 3 Jan 2025 14:16:50 +0100 Subject: [PATCH] Revert "fix: :art: simplify undefined test for filters" This reverts commit c37783d814a8d3dea2f8c12178cdd2f04fecad81. --- 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 9831bbf..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 {