From eedb451b98e833ddc2f6bee62c9f276c688589cc Mon Sep 17 00:00:00 2001 From: Guillermo Croppi Date: Fri, 20 Oct 2023 17:25:33 -0300 Subject: [PATCH] Fixed componentDidMount --- containers/general-container/component.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/containers/general-container/component.js b/containers/general-container/component.js index 2d895cd..7b97c0b 100644 --- a/containers/general-container/component.js +++ b/containers/general-container/component.js @@ -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) }