Skip to content

armgit / ente

Public Imported from GitHub
0

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

fix(mapView):black-flash-after-load

Aswin Asokfa08a3d90878
diff --git a/web/apps/photos/src/components/Collections/CollectionMapDialog.tsx b/web/apps/photos/src/components/Collections/CollectionMapDialog.tsx
index dcaddb05f9..d9f1bc02ff 100644
--- a/web/apps/photos/src/components/Collections/CollectionMapDialog.tsx
+++ b/web/apps/photos/src/components/Collections/CollectionMapDialog.tsx
@@ -1467,7 +1467,6 @@ const MapCanvas = React.memo(function MapCanvas({
onVisiblePhotosChange={onVisiblePhotosChange}
/>
<MarkerClusterGroup
- key={thumbByFileID.size}
chunkedLoading
iconCreateFunction={createClusterCustomIcon}
maxClusterRadius={80}
@@ -1480,7 +1479,7 @@ const MapCanvas = React.memo(function MapCanvas({
>
{mapPhotos.map((photo) => (
<Marker
- key={`${photo.fileId}-${thumbByFileID.has(photo.fileId)}`}
+ key={photo.fileId}
position={[photo.lat, photo.lng]}
icon={markerIcons.get(photo.fileId) ?? undefined}
/>