Skip to content

Commit e88c7cd

Browse files
committed
fix: tests
1 parent 56705a4 commit e88c7cd

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

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)