api: add OwnerFilter

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer
2021-05-21 20:46:59 +02:00
parent d9a788aac8
commit a603f42cc0
3 changed files with 13 additions and 1 deletions

View File

@ -46,7 +46,7 @@ export class PlexSourceForm extends ModelForm<PlexSource, string> {
}
send = (data: PlexSource): Promise<PlexSource> => {
data.plexToken = this.plexToken;
data.plexToken = this.plexToken || "";
if (this.instance?.slug) {
return new SourcesApi(DEFAULT_CONFIG).sourcesPlexUpdate({
slug: this.instance.slug,