web/admin: fix plex source authorization flow not being shown correctly

Signed-off-by: Jens Langhammer <jens@goauthentik.io>
This commit is contained in:
Jens Langhammer 2023-01-21 14:55:13 +01:00
parent 446dc0a17b
commit 767ffc09d0
No known key found for this signature in database

View file

@ -373,10 +373,10 @@ export class PlexSourceForm extends ModelForm<PlexSource, string> {
return flow?.pk;
}}
.selected=${(flow: Flow): boolean => {
let selected = this.instance?.enrollmentFlow === flow.pk;
let selected = this.instance?.authenticationFlow === flow.pk;
if (
!this.instance?.pk &&
!this.instance?.enrollmentFlow &&
!this.instance?.authenticationFlow &&
flow.slug === "default-source-authentication"
) {
selected = true;