also find the name of the pre selected resource (#34236)
fixes: #34017 Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>
This commit is contained in:
parent
cc5b8dfd38
commit
9db3c5eb06
1 changed files with 6 additions and 0 deletions
|
@ -125,6 +125,12 @@ export const ResourcesPolicySelect = ({
|
|||
permissionId,
|
||||
})
|
||||
: Promise.resolve([]),
|
||||
preSelected && name === "resources"
|
||||
? adminClient.clients.getResource({
|
||||
id: clientId,
|
||||
resourceId: preSelected,
|
||||
})
|
||||
: Promise.resolve([]),
|
||||
]);
|
||||
},
|
||||
([providers, ...policies]) => {
|
||||
|
|
Loading…
Reference in a new issue