diff options
Diffstat (limited to 'src/stores/AppStore.ts')
-rw-r--r-- | src/stores/AppStore.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/stores/AppStore.ts b/src/stores/AppStore.ts index b0a925411..51058c8eb 100644 --- a/src/stores/AppStore.ts +++ b/src/stores/AppStore.ts | |||
@@ -571,7 +571,7 @@ export default class AppStore extends TypedStore { | |||
571 | debug(`Removed download ${id}`); | 571 | debug(`Removed download ${id}`); |
572 | if (id === null) { | 572 | if (id === null) { |
573 | const indexesToRemove: number[] = []; | 573 | const indexesToRemove: number[] = []; |
574 | this.downloads.map(item => { | 574 | this.downloads.forEach(item => { |
575 | if (!item.state) return; | 575 | if (!item.state) return; |
576 | if (item.state === 'completed' || item.state === 'cancelled') { | 576 | if (item.state === 'completed' || item.state === 'cancelled') { |
577 | indexesToRemove.push(this.downloads.indexOf(item)); | 577 | indexesToRemove.push(this.downloads.indexOf(item)); |