RED-10517: fixed selected sorting.
This commit is contained in:
parent
72e760fff8
commit
cbdfcf4d8f
@ -52,7 +52,7 @@ export class ListingService<Class extends IListable<PrimaryKey>, PrimaryKey exte
|
||||
|
||||
get selected(): Class[] {
|
||||
const selectedIds = this.selectedIds;
|
||||
return this._entitiesService.all.filter(a => selectedIds.includes(a.id));
|
||||
return selectedIds.map(id => this._entitiesService.all.find(a => a.id === id)).filter(a => !!a);
|
||||
}
|
||||
|
||||
get selectedIds(): PrimaryKey[] {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user