fixed client lookup for non master realm (#2563)

fixes: #2562
This commit is contained in:
Erik Jan de Wit 2022-05-03 14:03:34 +02:00 committed by GitHub
parent f4a7063852
commit 83371ce75b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -71,7 +71,7 @@ export const PermissionsTab = ({ id, type }: PermissionsTabProps) => {
Promise.all([
adminClient.clients.find({
search: true,
clientId: realm,
clientId: realm === "master" ? "master-realm" : "realm-management",
}),
(() => {
switch (type) {