Skip to content

Commit

Permalink
Fix null safety error
Browse files Browse the repository at this point in the history
  • Loading branch information
ncovercash authored Sep 21, 2023
1 parent 4c98df3 commit ced24b9
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/forms/CalendarForm/validation/validateExceptions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -248,12 +248,12 @@ export function validateExceptionInterOverlaps(
const rowMinMaxes: { i: number; startDate: Dayjs; endDate: Dayjs }[] =
rows.map((row) => ({
i: row.i,
startDate: dayjs?.min(
row.rows.map(({ startDate }) => dayjs(startDate)))
.startOf('day'),
endDate: dayjs?.max(
row.rows.map(({ endDate }) => dayjs(endDate)))
.endOf('day')
startDate: dayjs
.min(row.rows.map(({ startDate }) => dayjs(startDate)))
?.startOf('day'),
endDate: dayjs
.maxrow.rows.map(({ endDate }) => dayjs(endDate)))
?.endOf('day')
}));

for (let i = 0; i < rowMinMaxes.length - 1; i++) {
Expand Down

0 comments on commit ced24b9

Please sign in to comment.