diff --git a/content/webapp/pages/works/[workId]/items.tsx b/content/webapp/pages/works/[workId]/items.tsx index 3a0a85b631..3d64850140 100644 --- a/content/webapp/pages/works/[workId]/items.tsx +++ b/content/webapp/pages/works/[workId]/items.tsx @@ -173,6 +173,7 @@ const ItemPage: NextPage = ({ }; const needsModal = checkModalRequired({ + role, auth, isAnyImageOpen, authV2, @@ -230,7 +231,7 @@ const ItemPage: NextPage = ({ setShowModal(false); setShowViewer(true); } - }, []); + }, [needsModal]); return (