Skip to content

Commit b131190

Browse files
committed
fix: tests
1 parent a7b478f commit b131190

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/header/hooks.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,9 @@ export const useLibrarySettingsMenuItems = () => {
150150
const intl = useIntl();
151151

152152
const openTeamAccessModalUrl = () => {
153+
if (!window.location.href) {
154+
return null;
155+
}
153156
const url = new URL(window.location.href);
154157
// Set ?sa=manage-team in url which in turn opens team access modal
155158
url.searchParams.set(LibQueryParamKeys.SidebarActions, SidebarActions.ManageTeam);

0 commit comments

Comments
 (0)