mirror of
https://github.com/bluewave-labs/Checkmate.git
synced 2026-01-27 04:09:46 -06:00
fixes
This commit is contained in:
@@ -63,10 +63,8 @@ const CreateNewMaintenanceWindow = () => {
|
||||
repeat: 1,
|
||||
date: dayjs(),
|
||||
startTime: dayjs(),
|
||||
duration: {
|
||||
magnitude: "",
|
||||
unit: 1,
|
||||
},
|
||||
duration: "60",
|
||||
unit: "minutes",
|
||||
friendlyName: "",
|
||||
AddMonitors: "",
|
||||
});
|
||||
@@ -133,14 +131,14 @@ const CreateNewMaintenanceWindow = () => {
|
||||
<Field
|
||||
id="duration-value"
|
||||
placeholder="60"
|
||||
onChange={(e) => handleChange(e, "duration.magnitude")}
|
||||
value={values["duration.unit"]}
|
||||
onChange={(e) => handleChange(e, "duration")}
|
||||
value={values.duration}
|
||||
/>
|
||||
<Select
|
||||
onChange={(e) => handleChange(e, "duration.unit")}
|
||||
onChange={(e) => handleChange(e, "unit")}
|
||||
id="duration-unit"
|
||||
items={timeFrames}
|
||||
value={values.duration.unit}
|
||||
value={values.unit}
|
||||
/>
|
||||
</Stack>
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user