Fix a issue that hi and forced is not properly updated on series subtitle upload modal

This commit is contained in:
LASER-Yi 2021-08-26 20:11:33 +08:00
parent 7e48413493
commit 50fb06b23a
1 changed files with 5 additions and 4 deletions

View File

@ -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(