Skip to content

Commit 17494b1

Browse files
AlexTugarevroboquat
authored andcommitted
[projects] clear team selection
1 parent eed3783 commit 17494b1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

components/dashboard/src/Menu.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,10 @@ export default function Menu() {
5858
const showTeamsUI = user?.rolesOrPermissions?.includes('teams-and-projects');
5959
const team = getCurrentTeam(location, teams);
6060

61-
if (team) {
61+
{
6262
// updating last team selection
6363
try {
64-
localStorage.setItem('team-selection', team.slug);
64+
localStorage.setItem('team-selection', team ? team.slug : "");
6565
} catch {
6666
}
6767
}

0 commit comments

Comments
 (0)