[FIX] Fix group data loading on home page
Happens when a set is in a group and the group is deleted, and user navigates to home page
This commit is contained in:
@@ -526,7 +526,7 @@ export default withRouter(class LoggedInHome extends React.Component {
|
||||
</div>
|
||||
</div>
|
||||
}
|
||||
{this.state.userGroupSets && this.state.userGroupSets.length > 0 && this.state.userGroupSets
|
||||
{this.state.userGroupSets && this.state.userGroupSets.length > 0 && typeof this.state.userGroupSets.group.data === "function" && this.state.userGroupSets
|
||||
.map(data =>
|
||||
data.sets && data.sets.length > 0 &&
|
||||
<div key={data.group.id} className="checkbox-list-container">
|
||||
|
||||
Reference in New Issue
Block a user