web: fix OAuthSource not setting providerType
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
parent
b4f738492d
commit
673520c9f8
|
@ -58,6 +58,7 @@ export class OAuthSourceForm extends ModelForm<OAuthSource, string> {
|
||||||
}
|
}
|
||||||
|
|
||||||
send = (data: OAuthSource): Promise<OAuthSource> => {
|
send = (data: OAuthSource): Promise<OAuthSource> => {
|
||||||
|
data.providerType = this.providerType?.slug || "";
|
||||||
if (this.instance?.slug) {
|
if (this.instance?.slug) {
|
||||||
return new SourcesApi(DEFAULT_CONFIG).sourcesOauthPartialUpdate({
|
return new SourcesApi(DEFAULT_CONFIG).sourcesOauthPartialUpdate({
|
||||||
slug: this.instance.slug,
|
slug: this.instance.slug,
|
||||||
|
|
Reference in a new issue