console: reset permission editor after creating new role

GITHUB_PR_NUMBER: 5833
GITHUB_PR_URL: https://github.com/hasura/graphql-engine/pull/5833

Co-authored-by: Varun Choudhary <68095256+Varun-Choudhary@users.noreply.github.com>
GitOrigin-RevId: 8504c95c5d8fcae41a00b2afb391b99fa594b1e0
This commit is contained in:
hasura-bot 2021-03-11 00:49:08 +05:30
parent 84d55cf771
commit bf8a22083e

View File

@ -446,9 +446,9 @@ class Permissions extends Component {
});
const dispatchRoleNameChange = e => {
const role = e.target.value;
dispatch(permSetRoleName(role));
const newRole = e.target.value;
dispatch(permOpenEdit(tableSchema, newRole, permissionsState.query));
dispatch(permSetRoleName(newRole));
};
return (