Skip to content

Commit

Permalink
solved issue that prevents building webpacks (#381)
Browse files Browse the repository at this point in the history
* solved issue that prevents building webpacks

* fixed coding style
  • Loading branch information
memurats authored Dec 2, 2024
1 parent 85cc14f commit bf8c99c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/store/userconfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,10 @@ export const useUserConfigStore = function(...args) {

// Make sure we only register the listeners once
if (!userConfigStore._initialized) {
subscribe('files:config:updated', function({ key, value }: { key: string, value: boolean }) {
userConfigStore.onUpdate(key, value)
subscribe('files:config:updated', (params) => {
if (params) {
userConfigStore.onUpdate(params.key, params.value)
}
})
userConfigStore.onUpdate('_initialized', true)
}
Expand Down

0 comments on commit bf8c99c

Please sign in to comment.