1
0
Fork 0
mirror of https://github.com/morpheus65535/bazarr synced 2024-12-25 01:02:19 +00:00
This commit is contained in:
LASER-Yi 2022-07-04 21:04:14 +08:00
parent 3958986614
commit 5c1399e9f2

View file

@ -47,7 +47,12 @@ const TimeOffsetForm: FunctionComponent<Props> = ({ selections, onSubmit }) => {
return (
<form
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) =>
task.create(s.path, TaskName, mutateAsync, {