From 3665fe1cc256d9bb180e5fc401ace3ce8a81337b Mon Sep 17 00:00:00 2001 From: Pierre GIRAUD Date: Wed, 18 Feb 2026 16:10:09 +0100 Subject: [PATCH] Use useColorMode mode instead of its value from store It prevents errors with wrong theme used at initialization. Value in store can be auto which isn't a theme. --- app/static/js/themeSwitcher.vue | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/static/js/themeSwitcher.vue b/app/static/js/themeSwitcher.vue index cd166ef..1a07ae1 100644 --- a/app/static/js/themeSwitcher.vue +++ b/app/static/js/themeSwitcher.vue @@ -19,10 +19,9 @@ library.add(faMoon, faSun); import { useColorMode } from "@vueuse/core"; -const { store: theme } = useColorMode({ +const theme = useColorMode({ attribute: "data-bs-theme", storageKey: "theme", - initialValue: "auto", }); function toggleTheme() {