Skip to content

armgit / ente

Public Imported from GitHub
0

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

Fix

Manav Rathiae50c8396021
diff --git a/web/packages/new/photos/components/Gallery/BarImpl.tsx b/web/packages/new/photos/components/Gallery/BarImpl.tsx
index 10f01c3226..83ad75da1a 100644
--- a/web/packages/new/photos/components/Gallery/BarImpl.tsx
+++ b/web/packages/new/photos/components/Gallery/BarImpl.tsx
@@ -113,8 +113,7 @@ export const GalleryBarImpl: React.FC<GalleryBarImplProps> = ({
const [canScrollRight, setCanScrollRight] = useState(false);
const listContainerRef = useRef<HTMLDivElement | null>(null);
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
- const listRef = useRef<any>(null);
+ const listRef = useRef<FixedSizeList | null>(null);
const updateScrollState = useCallback(() => {
if (!listContainerRef.current) return;
@@ -186,7 +185,6 @@ export const GalleryBarImpl: React.FC<GalleryBarImplProps> = ({
i = people.findIndex(({ id }) => id == activePerson?.id);
break;
}
- // eslint-disable-next-line @typescript-eslint/no-unsafe-call, @typescript-eslint/no-unsafe-member-access
if (i != -1) listRef.current.scrollToItem(i, "smart");
}, [mode, collectionSummaries, activeCollectionID, people, activePerson]);