aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/collections/CollectionCalendarView.tsx
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2024-09-04 22:58:40 -0400
committerbobzel <zzzman@gmail.com>2024-09-04 22:58:40 -0400
commit9014cc474a039f0daef6cc0ee2011329da7703ac (patch)
tree12f45bb9b20d8ee435ad8d7dc9d1b505a493b03a /src/client/views/collections/CollectionCalendarView.tsx
parentdf5217eea01b6ee3ce03ceede030306d05f19c58 (diff)
more fixes for calendarBox to preserve selection when view changes.
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 c1f0b314b..30fd9fc2b 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 { startDate: aFromDate, endDate: aToDate } = dateRangeStrToDates(aDateRangeStr);
- const { startDate: bFromDate, endDate: bToDate } = dateRangeStrToDates(bDateRangeStr);
+ const { start: aFromDate, end: aToDate } = dateRangeStrToDates(aDateRangeStr);
+ const { start: bFromDate, end: bToDate } = dateRangeStrToDates(bDateRangeStr);
if (aFromDate > bFromDate) {
return -1; // a comes first