mirror of
https://github.com/ToolJet/ToolJet
synced 2026-05-23 08:58:26 +00:00
bug fixed :On updating any permissions under permission tab, currentTab switches to app tab (#4734)
This commit is contained in:
parent
7b07e8dbef
commit
2ac288ab45
1 changed files with 6 additions and 4 deletions
|
|
@ -50,10 +50,12 @@ class ManageGroupPermissionResourcesComponent extends React.Component {
|
|||
|
||||
fetchGroupPermission = (groupPermissionId) => {
|
||||
groupPermissionService.getGroup(groupPermissionId).then((data) => {
|
||||
this.setState({
|
||||
groupPermission: data,
|
||||
currentTab: data?.group === 'admin' ? 'users' : 'apps',
|
||||
isLoadingGroup: false,
|
||||
this.setState((prevState) => {
|
||||
return {
|
||||
groupPermission: data,
|
||||
currentTab: data?.group === 'admin' ? 'users' : prevState.currentTab,
|
||||
isLoadingGroup: false,
|
||||
};
|
||||
});
|
||||
});
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue