diff --git a/src/photo/PhotoGridPage.tsx b/src/photo/PhotoGridPage.tsx index b4ff8c76..79447493 100644 --- a/src/photo/PhotoGridPage.tsx +++ b/src/photo/PhotoGridPage.tsx @@ -26,12 +26,7 @@ export default function PhotoGridPage({ const { setSelectedPhotoIds } = useAppState(); useEffect( - () => { - return () => { - console.log('PhotoGridPage: unmount'); - setSelectedPhotoIds?.(undefined); - }; - }, + () => () => setSelectedPhotoIds?.(undefined), [setSelectedPhotoIds] );