fixes
This commit is contained in:
1 parent
0664acd50a
commit
acf13ad78e
1 file changed
+6
-8
@@ -63,10 +63,8 @@ const CreateNewMaintenanceWindow = () => {
|
|||||||
repeat: 1,
|
repeat: 1,
|
||||||
date: dayjs(),
|
date: dayjs(),
|
||||||
startTime: dayjs(),
|
startTime: dayjs(),
|
||||||
duration: {
|
duration: "60",
|
||||||
magnitude: "",
|
unit: "minutes",
|
||||||
unit: 1,
|
|
||||||
},
|
|
||||||
friendlyName: "",
|
friendlyName: "",
|
||||||
AddMonitors: "",
|
AddMonitors: "",
|
||||||
});
|
});
|
||||||
@@ -133,14 +131,14 @@ const CreateNewMaintenanceWindow = () => {
|
|||||||
<Field
|
<Field
|
||||||
id="duration-value"
|
id="duration-value"
|
||||||
placeholder="60"
|
placeholder="60"
|
||||||
onChange={(e) => handleChange(e, "duration.magnitude")}
|
onChange={(e) => handleChange(e, "duration")}
|
||||||
value={values["duration.unit"]}
|
value={values.duration}
|
||||||
/>
|
/>
|
||||||
<Select
|
<Select
|
||||||
onChange={(e) => handleChange(e, "duration.unit")}
|
onChange={(e) => handleChange(e, "unit")}
|
||||||
id="duration-unit"
|
id="duration-unit"
|
||||||
items={timeFrames}
|
items={timeFrames}
|
||||||
value={values.duration.unit}
|
value={values.unit}
|
||||||
/>
|
/>
|
||||||
</Stack>
|
</Stack>
|
||||||
),
|
),
|
||||||
|
|||||||
Reference in new issue
Block a user