Fix type error
This commit is contained in:
parent
632c85870f
commit
40894e8b07
|
@ -192,7 +192,11 @@ const useListScheduleOptions = ({
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isChildrenManagedEventType && watchSchedule && !options.find((option) => option.id === watchSchedule)) {
|
if (
|
||||||
|
isChildrenManagedEventType &&
|
||||||
|
watchSchedule &&
|
||||||
|
!options.find((option) => option.value === watchSchedule)
|
||||||
|
) {
|
||||||
options.push({
|
options.push({
|
||||||
value: watchSchedule,
|
value: watchSchedule,
|
||||||
label: eventType.scheduleName ?? t("default_schedule_name"),
|
label: eventType.scheduleName ?? t("default_schedule_name"),
|
||||||
|
|
Loading…
Reference in New Issue
Block a user