From 770316a49fbb6ff2f6689f1ab6cfef34749a8d49 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Tue, 1 Jun 2021 23:36:21 +0200 Subject: [PATCH] web/admin: fix oauth source not creatable Signed-off-by: Jens Langhammer --- web/src/pages/sources/oauth/OAuthSourceForm.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/src/pages/sources/oauth/OAuthSourceForm.ts b/web/src/pages/sources/oauth/OAuthSourceForm.ts index 31ceb420d..81f7d1c19 100644 --- a/web/src/pages/sources/oauth/OAuthSourceForm.ts +++ b/web/src/pages/sources/oauth/OAuthSourceForm.ts @@ -41,7 +41,7 @@ export class OAuthSourceForm extends ModelForm { } send = (data: OAuthSource): Promise => { - if (this.instance) { + if (this.instance?.slug) { return new SourcesApi(DEFAULT_CONFIG).sourcesOauthPartialUpdate({ slug: this.instance.slug, patchedOAuthSourceRequest: data