web/admin: fix oauth source not creatable
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
		| @ -41,7 +41,7 @@ export class OAuthSourceForm extends ModelForm<OAuthSource, string> { | |||||||
|     } |     } | ||||||
|  |  | ||||||
|     send = (data: OAuthSource): Promise<OAuthSource> => { |     send = (data: OAuthSource): Promise<OAuthSource> => { | ||||||
|         if (this.instance) { |         if (this.instance?.slug) { | ||||||
|             return new SourcesApi(DEFAULT_CONFIG).sourcesOauthPartialUpdate({ |             return new SourcesApi(DEFAULT_CONFIG).sourcesOauthPartialUpdate({ | ||||||
|                 slug: this.instance.slug, |                 slug: this.instance.slug, | ||||||
|                 patchedOAuthSourceRequest: data |                 patchedOAuthSourceRequest: data | ||||||
|  | |||||||
		Reference in New Issue
	
	Block a user
	 Jens Langhammer
					Jens Langhammer