diff --git a/frontend/src/app/modules/hal/services/hal-events.service.ts b/frontend/src/app/modules/hal/services/hal-events.service.ts index d3d25c308d..0ec778709b 100644 --- a/frontend/src/app/modules/hal/services/hal-events.service.ts +++ b/frontend/src/app/modules/hal/services/hal-events.service.ts @@ -1,6 +1,6 @@ import {Injectable} from "@angular/core"; import {Observable, Subject} from "rxjs"; -import {buffer, debounceTime, filter, scan} from "rxjs/operators"; +import {buffer, debounceTime, filter} from "rxjs/operators"; import {HalResource} from "core-app/modules/hal/resources/hal-resource"; import {ResourceChangesetCommit} from "core-app/modules/fields/edit/services/hal-resource-editing.service"; @@ -45,8 +45,7 @@ export class HalEventsService { .events$ .pipe( filter((event:HalEvent) => event.resourceType === resourceType), - buffer(this.events$.pipe(debounceTime(debounceTimeInMs))), - scan((acc, curr) => acc.concat(curr)) + buffer(this.events$.pipe(debounceTime(debounceTimeInMs))) ); }