Skip to content

armgit / ente

Public Imported from GitHub
0

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

fix: lint

anandbaburajan7c794d5fbc43
diff --git a/web/apps/photos/src/components/TripTemplate/utils/scrollUtils.ts b/web/apps/photos/src/components/TripTemplate/utils/scrollUtils.ts
index 400803af8a..25090af2ad 100644
--- a/web/apps/photos/src/components/TripTemplate/utils/scrollUtils.ts
+++ b/web/apps/photos/src/components/TripTemplate/utils/scrollUtils.ts
@@ -167,17 +167,11 @@ export const handleTimelineScroll = ({
});
setTimeout(() => {
- if (mapRef?.getContainer()) {
- mapRef.flyTo(
- [positionedLat, positionedLng],
- targetZoom,
- {
- animate: true,
- duration: 1.2,
- easeLinearity: 0.25,
- },
- );
- }
+ mapRef.flyTo([positionedLat, positionedLng], targetZoom, {
+ animate: true,
+ duration: 1.2,
+ easeLinearity: 0.25,
+ });
}, 1600);
} else {
// For nearby locations: simple pan to target location