diff --git a/src/collections/Events.ts b/src/collections/Events.ts index 3f11e84..9f09096 100644 --- a/src/collections/Events.ts +++ b/src/collections/Events.ts @@ -44,6 +44,9 @@ const Events: CollectionConfig = { label: 'End Time', type: 'date', validate: (val, { siblingData }) => { + if (!val) + return true; + const end = new Date(val).getTime(); const start = new Date(siblingData.startTime).getTime();