web/admin: fix error when updating oauth source

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer 2021-05-11 13:31:33 +02:00
parent 34a8408a4f
commit 4352960f83

View file

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