mirror of
https://github.com/morpheus65535/bazarr.git
synced 2025-01-04 05:52:24 +08:00
Fix a issue that hi and forced is not properly updated on series subtitle upload modal
This commit is contained in:
parent
7e48413493
commit
50fb06b23a
1 changed files with 5 additions and 4 deletions
|
@ -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(
|
||||
|
|
Loading…
Reference in a new issue