aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/collections/CollectionCalendarView.tsx
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2024-09-04 13:05:17 -0400
committerbobzel <zzzman@gmail.com>2024-09-04 13:05:17 -0400
commit0b77229000231869695a6211e216d5b1755f53f7 (patch)
tree70bc7018a861c07a93cb855ce6ac55d449991ee8 /src/client/views/collections/CollectionCalendarView.tsx
parent158d501642b0183b286913eb396c396922166435 (diff)
made calendarBox work
Diffstat (limited to 'src/client/views/collections/CollectionCalendarView.tsx')
-rw-r--r--src/client/views/collections/CollectionCalendarView.tsx4
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