web/admin: only pre-select oauth2 provider key if creating a new instance

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer 2022-06-21 19:51:24 +02:00
parent 9f3e742fb1
commit 29b0eae43f
1 changed files with 1 additions and 1 deletions

View File

@ -193,7 +193,7 @@ ${this.instance?.redirectUris}</textarea
.then((keys) => { .then((keys) => {
return keys.results.map((key) => { return keys.results.map((key) => {
let selected = this.instance?.signingKey === key.pk; let selected = this.instance?.signingKey === key.pk;
if (keys.results.length === 1) { if (!this.instance && keys.results.length === 1) {
selected = true; selected = true;
} }
return html`<option return html`<option