From e35489cba2a5f05e80a14bc2834343555afb537d Mon Sep 17 00:00:00 2001 From: Sam Becker Date: Fri, 26 Jul 2024 13:04:07 -0500 Subject: [PATCH] Remove /grid console logging --- src/photo/PhotoGridPage.tsx | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) 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] );