fix readonly list
This commit is contained in:
parent
9759e0477e
commit
2b73cfcc8b
@ -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());
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user