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:
Erik Jan de Wit 2024-10-23 20:35:51 +02:00 committed by GitHub
parent cc5b8dfd38
commit 9db3c5eb06
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -125,6 +125,12 @@ export const ResourcesPolicySelect = ({
permissionId,
})
: Promise.resolve([]),
preSelected && name === "resources"
? adminClient.clients.getResource({
id: clientId,
resourceId: preSelected,
})
: Promise.resolve([]),
]);
},
([providers, ...policies]) => {