Skip to content

Commit 890136e

Browse files
jyash97SaraVieira
authored andcommitted
fix: data.me is undefined error (codesandbox#2499)
1 parent ee7b406 commit 890136e

File tree

1 file changed

+4
-0
lines changed
  • packages/app/src/app/pages/Dashboard/Sidebar

1 file changed

+4
-0
lines changed

packages/app/src/app/pages/Dashboard/Sidebar/index.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,10 @@ class Sidebar extends React.Component {
9292
return null;
9393
}
9494

95+
if (!(data && data.me)) {
96+
return null;
97+
}
98+
9599
const { teams = [] } = data.me;
96100

97101
return teams.map(team => (

0 commit comments

Comments
 (0)