diff --git a/src/pages/photogallery.tsx b/src/pages/photogallery.tsx index 675b03f..c7bdb67 100644 --- a/src/pages/photogallery.tsx +++ b/src/pages/photogallery.tsx @@ -110,7 +110,7 @@ const GalleryPage = ({ data, location }: PageProps { - if (!hash || hash.startsWith('all')) { + if (!hash) { return; } const el = document.getElementById(hash); @@ -118,7 +118,7 @@ const GalleryPage = ({ data, location }: PageProps { // don't scroll into view if user got here with back button scrollIntoView(); - }, 100); + }, 0); }, [setSortKey, setKeyword, scrollIntoView, location]); const images: GalleryImage[] = React.useMemo(() => { @@ -224,10 +224,10 @@ const GalleryPage = ({ data, location }: PageProps { - // e.preventDefault(); - // setSortKey("datePublished") - }} + // onClick={(e) => { + // // e.preventDefault(); + // // setSortKey("datePublished") + // }} to="?sort=datePublished#all" > show more @@ -264,9 +264,9 @@ const GalleryPage = ({ data, location }: PageProps