Skip to content

Commit

Permalink
Fixed componentDidMount
Browse files Browse the repository at this point in the history
  • Loading branch information
guillecro committed Oct 20, 2023
1 parent c940c13 commit eedb451
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion containers/general-container/component.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class GeneralContainer extends Component {
componentDidMount () {
if (!this.props.authContext.keycloak) return
// if (!this.props.authContext.user) return
if (this.authContext.authenticated && this.props.authContext.user && this.props.authContext.user.roles.includes('admin')) {this.setState({isAdmin: true})}
if (this.props.authContext.authenticated && this.props.authContext.user && this.props.authContext.user.roles.includes('admin')) {this.setState({isAdmin: true})}
this.fetchDocument(this.props.project, this.props.authContext.keycloak.token)
}

Expand Down

0 comments on commit eedb451

Please sign in to comment.