From 90598302bfb86cb49c5617e429fee6fb7db2b0be Mon Sep 17 00:00:00 2001 From: Shekar Siri Date: Sat, 4 Dec 2021 05:43:16 +0530 Subject: [PATCH] fix(ui) - fixed roles fetch ee check --- frontend/app/components/Client/ManageUsers/ManageUsers.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/frontend/app/components/Client/ManageUsers/ManageUsers.js b/frontend/app/components/Client/ManageUsers/ManageUsers.js index 50b1fd1db..e7936d35b 100644 --- a/frontend/app/components/Client/ManageUsers/ManageUsers.js +++ b/frontend/app/components/Client/ManageUsers/ManageUsers.js @@ -44,7 +44,9 @@ class ManageUsers extends React.PureComponent { closeModal = () => this.setState({ showModal: false }); componentWillMount = () => { this.props.fetchList(); - this.props.fetchRoles(); + if (this.props.isEnterprise) { + this.props.fetchRoles(); + } } adminLabel = (user) => {