mirror of
https://github.com/morpheus65535/bazarr
synced 2024-12-26 01:27:07 +00:00
Fix #1894
This commit is contained in:
parent
3958986614
commit
5c1399e9f2
1 changed files with 6 additions and 1 deletions
|
@ -47,7 +47,12 @@ const TimeOffsetForm: FunctionComponent<Props> = ({ selections, onSubmit }) => {
|
||||||
return (
|
return (
|
||||||
<form
|
<form
|
||||||
onSubmit={form.onSubmit(({ positive, hour, min, sec, ms }) => {
|
onSubmit={form.onSubmit(({ positive, hour, min, sec, ms }) => {
|
||||||
const action = convertToAction(hour, min, sec, ms);
|
let action: string;
|
||||||
|
if (positive) {
|
||||||
|
action = convertToAction(hour, min, sec, ms);
|
||||||
|
} else {
|
||||||
|
action = convertToAction(-hour, -min, -sec, -ms);
|
||||||
|
}
|
||||||
|
|
||||||
selections.forEach((s) =>
|
selections.forEach((s) =>
|
||||||
task.create(s.path, TaskName, mutateAsync, {
|
task.create(s.path, TaskName, mutateAsync, {
|
||||||
|
|
Loading…
Reference in a new issue