diff --git a/src/library-authoring/LibraryLayout.tsx b/src/library-authoring/LibraryLayout.tsx index c093af7ad..728d31cab 100644 --- a/src/library-authoring/LibraryLayout.tsx +++ b/src/library-authoring/LibraryLayout.tsx @@ -3,7 +3,6 @@ import { Route, Routes, useParams, - useLocation, } from 'react-router-dom'; import { ROUTES } from './routes'; @@ -23,12 +22,8 @@ const LibraryLayout = () => { throw new Error('Error: route is missing libraryId.'); } - const location = useLocation(); const context = useCallback((childPage) => ( { - ), [location.pathname]); + ), []); return (