Display last
This commit is contained in:
@@ -178,6 +178,7 @@ export class MapEffects {
|
||||
switchMap((action:mapActions.SelectItemSuccess) => {
|
||||
if(action.item.itemType == "vnd.farmmaps.itemtype.temporal") {
|
||||
return this.itemService$.getChildItemList(action.item.code,null).pipe(
|
||||
map(items => items.sort((a, b) => b.dataDate.getTime() - a.dataDate.getTime())),
|
||||
map((items) => new mapActions.SelectTemporalItemsSuccess(items )),
|
||||
catchError(error => of(new commonActions.Fail(error))));
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user