From 5e8dd66d6bf2c2261a3642b3dc0ff7b09c219ca0 Mon Sep 17 00:00:00 2001 From: Noah Overcash Date: Thu, 21 Sep 2023 15:18:04 -0400 Subject: [PATCH] More nullish errors?? --- src/forms/CalendarForm/validation/validateExceptions.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/forms/CalendarForm/validation/validateExceptions.tsx b/src/forms/CalendarForm/validation/validateExceptions.tsx index 6aeec69e..8413ecb9 100644 --- a/src/forms/CalendarForm/validation/validateExceptions.tsx +++ b/src/forms/CalendarForm/validation/validateExceptions.tsx @@ -250,10 +250,10 @@ export function validateExceptionInterOverlaps( i: row.i, startDate: dayjs .min(row.rows.map(({ startDate }) => dayjs(startDate))) - ?.startOf('day'), + ?.startOf('day') ?? dayjs(0), endDate: dayjs .max(row.rows.map(({ endDate }) => dayjs(endDate))) - ?.endOf('day') + ?.endOf('day') ?? dayjs(0) })); for (let i = 0; i < rowMinMaxes.length - 1; i++) {