diff options
| author | bobzel <zzzman@gmail.com> | 2024-09-04 13:05:17 -0400 |
|---|---|---|
| committer | bobzel <zzzman@gmail.com> | 2024-09-04 13:05:17 -0400 |
| commit | 0b77229000231869695a6211e216d5b1755f53f7 (patch) | |
| tree | 70bc7018a861c07a93cb855ce6ac55d449991ee8 /src/client/views/collections/CollectionCalendarView.tsx | |
| parent | 158d501642b0183b286913eb396c396922166435 (diff) | |
made calendarBox work
Diffstat (limited to 'src/client/views/collections/CollectionCalendarView.tsx')
| -rw-r--r-- | src/client/views/collections/CollectionCalendarView.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/views/collections/CollectionCalendarView.tsx b/src/client/views/collections/CollectionCalendarView.tsx index 9eb16917b..c1f0b314b 100644 --- a/src/client/views/collections/CollectionCalendarView.tsx +++ b/src/client/views/collections/CollectionCalendarView.tsx @@ -38,8 +38,8 @@ export class CollectionCalendarView extends CollectionSubView() { const aDateRangeStr = StrCast(DocListCast(calendarA.data).lastElement()?.date_range); const bDateRangeStr = StrCast(DocListCast(calendarB.data).lastElement()?.date_range); - const [aFromDate, aToDate] = dateRangeStrToDates(aDateRangeStr); - const [bFromDate, bToDate] = dateRangeStrToDates(bDateRangeStr); + const { startDate: aFromDate, endDate: aToDate } = dateRangeStrToDates(aDateRangeStr); + const { startDate: bFromDate, endDate: bToDate } = dateRangeStrToDates(bDateRangeStr); if (aFromDate > bFromDate) { return -1; // a comes first |
