From 2a41ff58f2b298fa6313f1273fa39d123354371b Mon Sep 17 00:00:00 2001 From: Jan Kuri Date: Tue, 18 Jul 2017 20:05:59 +0200 Subject: [PATCH] fix(): minor --- src/ngx-uploader/classes/ngx-uploader.class.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ngx-uploader/classes/ngx-uploader.class.ts b/src/ngx-uploader/classes/ngx-uploader.class.ts index 8311d381..627b770a 100644 --- a/src/ngx-uploader/classes/ngx-uploader.class.ts +++ b/src/ngx-uploader/classes/ngx-uploader.class.ts @@ -2,7 +2,7 @@ import { EventEmitter } from '@angular/core'; import { Observable } from 'rxjs/Observable'; import { Subscription } from 'rxjs/Subscription'; import { Subscriber } from 'rxjs/Subscriber'; -import 'rxjs/add/observable/merge'; +import 'rxjs/add/observable/from'; import 'rxjs/add/operator/mergeAll'; export enum UploadStatus { @@ -123,7 +123,7 @@ export class NgUploaderService { break; case 'uploadAll': const concurrency = event.concurrency > 0 ? event.concurrency : Number.POSITIVE_INFINITY; - Observable.merge(this.files.map(file => this.uploadFile(file, event))) + Observable.from(this.files.map(file => this.uploadFile(file, event))) .mergeAll(concurrency) .subscribe((data: UploadOutput) => this.serviceEvents.emit(data)); break;