summaryrefslogtreecommitdiffhomepage
path: root/frontend/src/components/modals/SeriesUploadModal.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'frontend/src/components/modals/SeriesUploadModal.tsx')
-rw-r--r--frontend/src/components/modals/SeriesUploadModal.tsx9
1 files changed, 5 insertions, 4 deletions
diff --git a/frontend/src/components/modals/SeriesUploadModal.tsx b/frontend/src/components/modals/SeriesUploadModal.tsx
index dd5a9040e..6f6245905 100644
--- a/frontend/src/components/modals/SeriesUploadModal.tsx
+++ b/frontend/src/components/modals/SeriesUploadModal.tsx
@@ -90,14 +90,15 @@ const SeriesUploadModal: FunctionComponent<SeriesProps & BaseModalProps> = ({
const tasks = items
.filter((v) => v.payload.instance !== undefined)
.map((v) => {
- const { code2, hi, forced } = v.language!;
- const { sonarrEpisodeId: episodeid } = v.payload.instance!;
+ const { hi, forced, payload, language } = v;
+ const { code2 } = language!;
+ const { sonarrEpisodeId: episodeid } = payload.instance!;
const form: FormType.UploadSubtitle = {
file: v.file,
language: code2,
- hi: hi ?? false,
- forced: forced ?? false,
+ hi: hi,
+ forced: forced,
};
return createTask(