1
0
Fork 0
mirror of https://github.com/morpheus65535/bazarr synced 2024-12-26 01:27:07 +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 ( 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, {