fix config/highlight not working upon login

This commit is contained in:
Henry Jameson 2026-03-16 09:50:37 +02:00
commit 7528a72b2e
2 changed files with 9 additions and 7 deletions

View file

@ -278,8 +278,10 @@ export const useUserHighlightStore = defineStore('user_highlight', {
const userNew = userData.created_at > NEW_USER_DATE
let dirty = false
const vuexState = await storage.getItem('vuex-lz')
const { highlight } = vuexState.config
const vuexState = await storage.getItem('vuex-lz') ?? {}
vuexState.config = vuexState.config ?? {}
const highlight = vuexState.config.highlight ?? {}
Object.entries(highlight).forEach(([user, value]) => {
if ((highlight[user]._migrated || 0) < 1) {
dirty = true