web: fix OAuthSource not setting providerType

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer 2021-08-21 16:08:50 +02:00
parent b4f738492d
commit 673520c9f8
1 changed files with 1 additions and 0 deletions

View File

@ -58,6 +58,7 @@ export class OAuthSourceForm extends ModelForm<OAuthSource, string> {
}
send = (data: OAuthSource): Promise<OAuthSource> => {
data.providerType = this.providerType?.slug || "";
if (this.instance?.slug) {
return new SourcesApi(DEFAULT_CONFIG).sourcesOauthPartialUpdate({
slug: this.instance.slug,