Merged in fix/SW-3229 (pull request #2689)
fix(SW-3229): change to group on filtering * fix(SW-3229): change to group on filtering Approved-by: Erik Tiekstra
This commit is contained in:
@@ -208,10 +208,10 @@ export function getFilteredSlicedPois(pois: PointOfInterest[]) {
|
||||
return pois
|
||||
.filter(
|
||||
(poi) =>
|
||||
poi.categoryName === PointOfInterestGroupEnum.ATTRACTIONS ||
|
||||
poi.categoryName === PointOfInterestGroupEnum.LOCATION ||
|
||||
poi.categoryName === PointOfInterestGroupEnum.SHOPPING_DINING ||
|
||||
poi.categoryName === PointOfInterestGroupEnum.PUBLIC_TRANSPORT
|
||||
poi.group === PointOfInterestGroupEnum.ATTRACTIONS ||
|
||||
poi.group === PointOfInterestGroupEnum.LOCATION ||
|
||||
poi.group === PointOfInterestGroupEnum.SHOPPING_DINING ||
|
||||
poi.group === PointOfInterestGroupEnum.PUBLIC_TRANSPORT
|
||||
)
|
||||
.slice(0, 3)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user