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 66c3116 commit 9ed1f48Copy full SHA for 9ed1f48
src/shared/containers/tc-communities/Loader.jsx
@@ -65,8 +65,9 @@ class Loader extends React.Component {
65
return <LoadingPagePlaceholder />;
66
}
67
68
- const visitorGroupIds = visitorGroups.map(g => g.id);
69
- const member = meta.groupId && visitorGroupIds.includes(meta.groupId);
+ const visitorGroupIds = visitorGroups ? visitorGroups.map(g => g.id) : null;
+ const member = visitorGroupIds && meta.groupId
70
+ && visitorGroupIds.includes(meta.groupId);
71
72
/* Community does not require authorization. */
73
if (!meta.authorizedGroupIds) return Community({ member, meta });
0 commit comments