RED-6412, fix document annotation select being delayed.

This commit is contained in:
George 2023-03-30 17:31:32 +03:00
parent a99810fea3
commit 2d2ba49242

View File

@ -12,12 +12,11 @@ import {
IconButtonTypes,
INestedFilter,
IqserEventTarget,
log,
shareDistinctLast,
shareLast,
} from '@iqser/common-ui';
import { combineLatest, delay, Observable, pipe } from 'rxjs';
import { distinctUntilChanged, map, tap } from 'rxjs/operators';
import { combineLatest, delay, Observable } from 'rxjs';
import { map, tap } from 'rxjs/operators';
import { File } from '@red/domain';
import { ExcludedPagesService } from '../../services/excluded-pages.service';
import { MultiSelectService } from '../../services/multi-select.service';
@ -165,7 +164,7 @@ export class FileWorkloadComponent extends AutoUnsubscribe implements OnDestroy
delay(0),
map(([annotations, primary, secondary]) => this._filterAnnotations(annotations, primary, secondary)),
map(annotations => this._mapListItemsFromAnnotationWrapperArray(annotations)),
tap(() => this._changeDetectorRef.detectChanges()),
tap(() => setTimeout(() => this._changeDetectorRef.detectChanges())),
);
}