Do not query organizations when selecting a user if organization is disabled
Signed-off-by: Pedro Igor <pigor.craveiro@gmail.com>
This commit is contained in:
parent
e3c0b918bd
commit
d0335d23fe
1 changed files with 3 additions and 1 deletions
|
@ -123,7 +123,9 @@ export default function EditUser() {
|
|||
adminClient.attackDetection.findOne({ id: id! }),
|
||||
adminClient.users.getUnmanagedAttributes({ id: id! }),
|
||||
adminClient.users.getProfile({ realm: realmName }),
|
||||
adminClient.organizations.find({ first: 0, max: 1 }),
|
||||
showOrganizations
|
||||
? adminClient.organizations.find({ first: 0, max: 1 })
|
||||
: [],
|
||||
]),
|
||||
([
|
||||
userData,
|
||||
|
|
Loading…
Reference in a new issue