From 4add0bbe86bea6b8aef354670f4cf5480a0d2bdc Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Sat, 17 Apr 2021 19:06:56 +0200 Subject: [PATCH] web/admin: fix provider type resetting when changing provider type Signed-off-by: Jens Langhammer --- web/src/pages/sources/oauth/OAuthSourceForm.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/web/src/pages/sources/oauth/OAuthSourceForm.ts b/web/src/pages/sources/oauth/OAuthSourceForm.ts index f4addbd11..81a8c681a 100644 --- a/web/src/pages/sources/oauth/OAuthSourceForm.ts +++ b/web/src/pages/sources/oauth/OAuthSourceForm.ts @@ -141,6 +141,10 @@ export class OAuthSourceForm extends Form { } else { this.showUrlOptions = false; } + if (!this.source) { + this.source = {} as OAuthSource; + } + this.source.providerType = selected.value; }}> ${until(new SourcesApi(DEFAULT_CONFIG).sourcesOauthSourceTypes().then(types => { return types.map(type => {