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

View file

@ -193,7 +193,7 @@ ${this.instance?.redirectUris}</textarea
.then((keys) => {
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`<option