From 29b0eae43f325cdfd78a3e175eb6e3c70a883a65 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Tue, 21 Jun 2022 19:51:24 +0200 Subject: [PATCH] web/admin: only pre-select oauth2 provider key if creating a new instance Signed-off-by: Jens Langhammer --- web/src/pages/providers/oauth2/OAuth2ProviderForm.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/src/pages/providers/oauth2/OAuth2ProviderForm.ts b/web/src/pages/providers/oauth2/OAuth2ProviderForm.ts index 3781dd4c6..7572d6900 100644 --- a/web/src/pages/providers/oauth2/OAuth2ProviderForm.ts +++ b/web/src/pages/providers/oauth2/OAuth2ProviderForm.ts @@ -193,7 +193,7 @@ ${this.instance?.redirectUris} { return keys.results.map((key) => { let selected = this.instance?.signingKey === key.pk; - if (keys.results.length === 1) { + if (!this.instance && keys.results.length === 1) { selected = true; } return html`