Skip to content

Commit

Permalink
Nmc/fix type mismatch error again (#382)
Browse files Browse the repository at this point in the history
* fixed union type issue

* fixed typo
  • Loading branch information
memurats authored Dec 2, 2024
1 parent bf8c99c commit a68f190
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/store/userconfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,8 @@ 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)
})
userConfigStore.onUpdate('_initialized', true)
}
Expand Down

0 comments on commit a68f190

Please sign in to comment.