diff --git a/web/src/pages/sources/ldap/LDAPSourceForm.ts b/web/src/pages/sources/ldap/LDAPSourceForm.ts index 59729d5ab..771313257 100644 --- a/web/src/pages/sources/ldap/LDAPSourceForm.ts +++ b/web/src/pages/sources/ldap/LDAPSourceForm.ts @@ -160,11 +160,8 @@ export class LDAPSourceForm extends ModelForm { }) .then((keys) => { return keys.results.map((key) => { - let selected = + const selected = this.instance?.peerCertificate === key.pk; - if (keys.results.length === 1) { - selected = true; - } return html`