From 483b55e9d823ef468f15a1eb4abf1d080d8e0c88 Mon Sep 17 00:00:00 2001 From: Vesa Meskanen Date: Thu, 13 Jun 2024 14:02:01 +0300 Subject: [PATCH] fix: remove deduplication by pattern id --- app/component/StopsNearYouMapContainer.js | 2 -- app/component/map/StopsNearYouMap.js | 1 - 2 files changed, 3 deletions(-) diff --git a/app/component/StopsNearYouMapContainer.js b/app/component/StopsNearYouMapContainer.js index 9e9f8050f6..705f855f9e 100644 --- a/app/component/StopsNearYouMapContainer.js +++ b/app/component/StopsNearYouMapContainer.js @@ -77,7 +77,6 @@ const containerComponent = createPaginationContainer( lon name patterns { - id route { gtfsId shortName @@ -92,7 +91,6 @@ const containerComponent = createPaginationContainer( } stops { patterns { - id route { gtfsId shortName diff --git a/app/component/map/StopsNearYouMap.js b/app/component/map/StopsNearYouMap.js index 0d2cc21f53..39f88a2985 100644 --- a/app/component/map/StopsNearYouMap.js +++ b/app/component/map/StopsNearYouMap.js @@ -314,7 +314,6 @@ function StopsNearYouMap( }); }); }); - patterns = uniqBy(patterns, p => p.id); patterns = uniqBy(patterns, p => p.patternGeometry?.points || ''); const lines = patterns .filter(p => p.patternGeometry)