IO-2162 Smart Scheduling updates.

This commit is contained in:
Patrick Fic
2023-02-03 17:19:30 -08:00
parent 3be50b5067
commit a960963e36

View File

@@ -134,7 +134,12 @@ export function ScheduleJobModalComponent({
className="imex-flex-row__margin"
key={idx}
onClick={() => {
form.setFieldsValue({ start: new moment(d).add(8, "hours") });
const ssDate = moment(d);
if (ssDate.isBefore(moment())) {
form.setFieldsValue({ start: moment() });
} else {
form.setFieldsValue({ start: moment(d).add(8, "hours") });
}
handleDateBlur();
}}
>