validation fixes
This commit is contained in:
1 parent
f0b152fc8f
commit
f12c544751
2 files changed
+3
No files matched your search
@@ -183,6 +183,7 @@ const CreateMaintenanceWindowPage = () => {
|
|||||||
value={field.value ? dayjs(field.value, "YYYY-MM-DD") : null}
|
value={field.value ? dayjs(field.value, "YYYY-MM-DD") : null}
|
||||||
onChange={(date) => {
|
onChange={(date) => {
|
||||||
field.onChange(date ? date.format("YYYY-MM-DD") : "");
|
field.onChange(date ? date.format("YYYY-MM-DD") : "");
|
||||||
|
trigger("startDate");
|
||||||
}}
|
}}
|
||||||
error={!!fieldState.error}
|
error={!!fieldState.error}
|
||||||
helperText={fieldState.error?.message}
|
helperText={fieldState.error?.message}
|
||||||
|
|||||||
@@ -45,6 +45,8 @@ class MaintenanceWindowService {
|
|||||||
monitorId,
|
monitorId,
|
||||||
name: body.name,
|
name: body.name,
|
||||||
active: body.active ? body.active : true,
|
active: body.active ? body.active : true,
|
||||||
|
duration: body.duration,
|
||||||
|
durationUnit: body.durationUnit,
|
||||||
repeat: body.repeat,
|
repeat: body.repeat,
|
||||||
start: body.start,
|
start: body.start,
|
||||||
end: body.end,
|
end: body.end,
|
||||||
|
|||||||
Reference in new issue
Block a user