diff options
author | LASER-Yi <[email protected]> | 2021-08-26 20:11:33 +0800 |
---|---|---|
committer | LASER-Yi <[email protected]> | 2021-08-26 20:11:33 +0800 |
commit | 50fb06b23a502c3a108c2e17038e4bfe85cbcd59 (patch) | |
tree | 3f51c14fce1e69f117913203092d84f42e692344 | |
parent | 7e48413493510f4f7e95b2b49bdd8b051e482d14 (diff) | |
download | bazarr-50fb06b23a502c3a108c2e17038e4bfe85cbcd59.tar.gz bazarr-50fb06b23a502c3a108c2e17038e4bfe85cbcd59.zip |
Fix a issue that hi and forced is not properly updated on series subtitle upload modal
-rw-r--r-- | frontend/src/components/modals/SeriesUploadModal.tsx | 9 |
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( |