Skip to content

Commit

Permalink
fixed union type issue
Browse files Browse the repository at this point in the history
  • Loading branch information
memurats committed Dec 2, 2024
1 parent bf8c99c commit 3823e0b
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/store/userconfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,9 @@ export const useUserConfigStore = function(...args) {
// Make sure we only register the listeners once
if (!userConfigStore._initialized) {
subscribe('files:config:updated', (params) => {
if (params) {
userConfigStore.onUpdate(params.key, params.value)
}
})
const userParams = params as { key: string; value: boolean }
userConfigStore.onUpdate(userParams.key, userParams.value)
fixed })
userConfigStore.onUpdate('_initialized', true)
}

Expand Down

0 comments on commit 3823e0b

Please sign in to comment.