From 2739d49262bf3fe8fca6be2229c8f86c96c18ec4 Mon Sep 17 00:00:00 2001 From: Muhsin Shah Date: Thu, 19 Oct 2023 16:05:30 +0530 Subject: [PATCH] fix: for manage app modal state issues --- frontend/src/Editor/ManageAppUsers.jsx | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/frontend/src/Editor/ManageAppUsers.jsx b/frontend/src/Editor/ManageAppUsers.jsx index cc8891cd84..0a5c924793 100644 --- a/frontend/src/Editor/ManageAppUsers.jsx +++ b/frontend/src/Editor/ManageAppUsers.jsx @@ -49,7 +49,6 @@ class ManageAppUsersComponent extends React.Component { const appId = this.props.app.id; this.fetchAppUsers(); this.setState({ appId }); - this.validateThePreExistingSlugs(); } fetchAppUsers = () => { @@ -77,7 +76,6 @@ class ManageAppUsersComponent extends React.Component { isSlugVerificationInProgress: false, isSlugUpdated: false, }); - this.validateThePreExistingSlugs(); }; addUser = () => { @@ -197,7 +195,13 @@ class ManageAppUsersComponent extends React.Component { return (
- this.setState({ showModal: true })}> + { + this.validateThePreExistingSlugs(); + this.setState({ showModal: true }); + }} + >