RED-6313, remove active comparison as it's redundant.

This commit is contained in:
George 2023-03-08 12:15:42 +02:00
parent 45b4a97f21
commit 03e3245f07

View File

@ -51,7 +51,7 @@ export class PageIndicatorComponent extends ContextComponent<PageIndicatorContex
);
const assigneeChanged$ = this._state.file$.pipe(
pairwise(),
map(([prevFile, currFile]) => this.active && prevFile.assignee !== currFile.assignee),
map(([prevFile, currFile]) => prevFile.assignee !== currFile.assignee),
tap(assigneeChanged => assigneeChanged && this.handlePageRead()),
);
super._initContext({ isRotated: isRotated$, assigneeChanged: assigneeChanged$ });