fix readonly list

This commit is contained in:
Dan Percic 2021-11-17 01:30:45 +02:00
parent 9759e0477e
commit 2b73cfcc8b

View File

@ -37,7 +37,7 @@ export abstract class ListingComponent<T extends IListable> extends AutoUnsubscr
return this.entitiesService.all;
}
private get _sortedDisplayedEntities$(): Observable<readonly T[]> {
private get _sortedDisplayedEntities$(): Observable<T[]> {
const sort = (entities: T[]) => this.sortingService.defaultSort(entities);
const sortedEntities$ = this.listingService.displayed$.pipe(map(sort));
return this.sortingService.sortingOption$.pipe(switchMapTo(sortedEntities$), shareDistinctLast());