diff --git a/src/components/Layout/Header.jsx b/src/components/Layout/Header.jsx index ae72921a..3c4b5f86 100644 --- a/src/components/Layout/Header.jsx +++ b/src/components/Layout/Header.jsx @@ -34,6 +34,8 @@ const Header = () => { const isDashboardPath = /^\/dashboard$/.test(location.pathname) || /^\/$/.test(location.pathname); const isProjectPath = /^\/projects$/.test(location.pathname); + const isCollectionPath = + /^\/collection$/.test(location.pathname) || /^\/$/.test(location.pathname); const showProjectDropdown = (pathname) => { const isDirectoryPath = /^\/directory$/.test(pathname); @@ -216,7 +218,7 @@ const Header = () => { className="dropdown-menu" style={{ overflow: "auto", maxHeight: "300px" }} > - {isDashboardPath && ( + {(isDashboardPath|| isCollectionPath) &&(