fix config/highlight not working upon login
This commit is contained in:
parent
47cf88426d
commit
7528a72b2e
2 changed files with 9 additions and 7 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue