@propriety/court-calendar 1.0.40 → 1.0.41

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -14409,7 +14409,7 @@ function nD({
14409
14409
  }
14410
14410
  }
14411
14411
  if (!H) return [L, ...I];
14412
- const z = R.MultipleDates.map((Q, W) => ({
14412
+ const z = R.MultipleDates.filter(Boolean).map((Q, W) => ({
14413
14413
  ...L,
14414
14414
  id: `${R.CourtDateID}-extra-${W}`,
14415
14415
  township: `${s(R.MuniCode)} (day ${W + 2})`,
@@ -17753,7 +17753,7 @@ function hD({
17753
17753
  }
17754
17754
  }
17755
17755
  return I;
17756
- }, [_, i, o, e]), R = zt(() => _.flatMap((I) => !Array.isArray(I.MultipleDates) || I.MultipleDates.length === 0 ? [] : I.MultipleDates.map((z, Q) => ({
17756
+ }, [_, i, o, e]), R = zt(() => _.flatMap((I) => !Array.isArray(I.MultipleDates) || I.MultipleDates.length === 0 ? [] : I.MultipleDates.filter(Boolean).map((z, Q) => ({
17757
17757
  id: `multipledate-${I.CourtDateID}-${Q}`,
17758
17758
  title: `${o(I.MuniCode)} (${I.MuniCode}) (day ${Q + 2})`,
17759
17759
  start: z,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@propriety/court-calendar",
3
3
  "private": false,
4
- "version": "1.0.40",
4
+ "version": "1.0.41",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
7
7
  "module": "./dist/index.mjs",
@@ -303,7 +303,7 @@ export default function CalendarList({
303
303
  }
304
304
 
305
305
  if (!hasMultiple) return [baseRow, ...adjRows];
306
- const extraRows = date.MultipleDates!.map((extraDate, index) => ({
306
+ const extraRows = date.MultipleDates!.filter(Boolean).map((extraDate, index) => ({
307
307
  ...baseRow,
308
308
  id: `${date.CourtDateID}-extra-${index}`,
309
309
  township: `${getTownshipName(date.MuniCode)} (day ${index + 2})`,
@@ -249,7 +249,7 @@ export function useCalendarEvents({
249
249
  const mdates = useMemo(() => {
250
250
  return filteredDates.flatMap((date) => {
251
251
  if (!Array.isArray(date.MultipleDates) || date.MultipleDates.length === 0) return [];
252
- return date.MultipleDates.map((extraDate, index) => ({
252
+ return date.MultipleDates.filter(Boolean).map((extraDate, index) => ({
253
253
  id: `multipledate-${date.CourtDateID}-${index}`,
254
254
  title: `${getTownshipName(date.MuniCode)} (${date.MuniCode}) (day ${index + 2})`,
255
255
  start: extraDate,