IO-2162 Smart Scheduling updates.
This commit is contained in:
@@ -134,7 +134,12 @@ export function ScheduleJobModalComponent({
|
|||||||
className="imex-flex-row__margin"
|
className="imex-flex-row__margin"
|
||||||
key={idx}
|
key={idx}
|
||||||
onClick={() => {
|
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();
|
handleDateBlur();
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
|
|||||||
Reference in New Issue
Block a user