Fix type error

This commit is contained in:
Alex van Andel 2024-01-12 01:36:41 +00:00
parent 632c85870f
commit 40894e8b07

View File

@ -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({
value: watchSchedule,
label: eventType.scheduleName ?? t("default_schedule_name"),