[FIX] Updated fix for group data loading

Check for existence of groups variable before checking type of child variable
This commit is contained in:
2022-08-29 17:00:48 +01:00
parent 221b61cce1
commit e60b1ab5ef

View File

@@ -526,7 +526,7 @@ export default withRouter(class LoggedInHome extends React.Component {
</div> </div>
</div> </div>
} }
{this.state.userGroupSets && this.state.userGroupSets.length > 0 && typeof this.state.userGroupSets.group.data === "function" && this.state.userGroupSets {this.state.userGroupSets && this.state.userGroupSets.length > 0 && this.state.userGroupSets.group && typeof this.state.userGroupSets.group.data === "function" && this.state.userGroupSets
.map(data => .map(data =>
data.sets && data.sets.length > 0 && data.sets && data.sets.length > 0 &&
<div key={data.group.id} className="checkbox-list-container"> <div key={data.group.id} className="checkbox-list-container">