fix: OIDC client logo gets removed if other properties get updated

This commit is contained in:
Elias Schneider
2024-12-17 19:00:33 +01:00
parent aeda512cb7
commit 789d9394a5
3 changed files with 7 additions and 4 deletions

View File

@@ -33,7 +33,10 @@
async function updateClient(updatedClient: OidcClientCreateWithLogo) {
let success = true;
const dataPromise = oidcService.updateClient(client.id, updatedClient);
const imagePromise = oidcService.updateClientLogo(client, updatedClient.logo);
const imagePromise =
updatedClient.logo !== undefined
? oidcService.updateClientLogo(client, updatedClient.logo)
: Promise.resolve();
client.isPublic = updatedClient.isPublic;