Skip to content

Commit

Permalink
fix: onDidChange on undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed Aug 12, 2019
1 parent 0ea63c3 commit 068120a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/loaders/ComposedLoader.ts
Expand Up @@ -22,7 +22,7 @@ export class ComposedLoader extends Loader {
set loaders (value: Loader[]) {
this._watchers.forEach(d => d.dispose())
this._loaders = value
this._watchers = this.loaders.map(loader =>
this._watchers = this.loaders.filter(i => i).map(loader =>
loader.onDidChange(e => this._onDidChange.fire(`${e}+${this.name}`))
)
// this._onDidChange.fire(this.name)
Expand Down

0 comments on commit 068120a

Please sign in to comment.