Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

fix: super clusters active regardless of which location inside it

anandbaburajan7ebe3ecb9865
diff --git a/web/apps/photos/src/components/TripTemplate/TripMap.tsx b/web/apps/photos/src/components/TripTemplate/TripMap.tsx
index 6c78245c99..440454b35d 100644
--- a/web/apps/photos/src/components/TripTemplate/TripMap.tsx
+++ b/web/apps/photos/src/components/TripTemplate/TripMap.tsx
@@ -90,12 +90,8 @@ export const TripMap: React.FC<TripMapProps> = ({
{/* Draw super-clusters (clickable for zoom and gallery) */}
{superClusters.map((superCluster, index) => {
// Only show green for the current location (not all reached locations)
- const firstClusterIndex =
- superCluster.clustersInvolved[0];
const currentLocationIndex = Math.round(scrollProgress * Math.max(0, photoClusters.length - 1));
- const isCurrent =
- firstClusterIndex !== undefined &&
- firstClusterIndex === currentLocationIndex;
+ const isCurrent = superCluster.clustersInvolved.includes(currentLocationIndex);
return (
<Marker