We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 56705a4 commit e88c7cdCopy full SHA for e88c7cd
src/header/hooks.tsx
@@ -150,6 +150,9 @@ export const useLibrarySettingsMenuItems = () => {
150
const intl = useIntl();
151
152
const openTeamAccessModalUrl = () => {
153
+ if (!window.location.href) {
154
+ return null;
155
+ }
156
const url = new URL(window.location.href);
157
// Set ?sa=manage-team in url which in turn opens team access modal
158
url.searchParams.set(LibQueryParamKeys.SidebarActions, SidebarActions.ManageTeam);
0 commit comments