Realm roles: fixes bug that prevents fields from being populated (#1839)

* realm role fields are now being populated

* remove setTimeout

* remove unnecessary conditional
This commit is contained in:
Jenny 2022-01-14 09:56:56 -05:00 committed by GitHub
parent 919d07c90b
commit f489e186a1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -90,6 +90,8 @@ export default function RealmRoleTabs() {
throw new Error(t("common:notFound"));
}
setRealm(realm);
if (role) {
const convertedRole = convert(role);
setRole(convertedRole);
@ -97,10 +99,8 @@ export default function RealmRoleTabs() {
setValue(entry[0], entry[1]);
});
}
setRealm(realm);
},
[key]
[key, url]
);
const save = async () => {