web/admin: fix error when updating oauth source
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
parent
34a8408a4f
commit
4352960f83
|
@ -42,7 +42,7 @@ export class OAuthSourceForm extends ModelForm<OAuthSource, string> {
|
||||||
|
|
||||||
send = (data: OAuthSource): Promise<OAuthSource> => {
|
send = (data: OAuthSource): Promise<OAuthSource> => {
|
||||||
if (this.instance) {
|
if (this.instance) {
|
||||||
return new SourcesApi(DEFAULT_CONFIG).sourcesOauthUpdate({
|
return new SourcesApi(DEFAULT_CONFIG).sourcesOauthPartialUpdate({
|
||||||
slug: this.instance.slug,
|
slug: this.instance.slug,
|
||||||
data: data
|
data: data
|
||||||
});
|
});
|
||||||
|
|
Reference in a new issue