From 610995001f7f58110e4ff73b68df005a7280a79e Mon Sep 17 00:00:00 2001
From: Terry Truong <terry06890@gmail.com>
Date: Tue, 18 Oct 2022 12:04:17 +1100
Subject: Use shallowRef for event tree

- Fixes 'saved is null' errors
- De-lint rbtree.ts
- Add rbtree_shallow_copy(), for triggering changes upon modifying the
  eventTree (using triggerRef doesn't work)
---
 src/components/TimeLine.vue | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'src/components/TimeLine.vue')

diff --git a/src/components/TimeLine.vue b/src/components/TimeLine.vue
index 3a5de5b..62780c8 100644
--- a/src/components/TimeLine.vue
+++ b/src/components/TimeLine.vue
@@ -261,7 +261,7 @@ const idToEvent = computed(() => { // Maps visible event IDs to HistEvent, x-pos
 	// Find events to display, and do basic layouting
 	let iter = props.eventTree.lowerBound(new HistEvent(0, '', startDate.value));
 	while (iter.data() != null){
-		let event = iter.data();
+		let event = iter.data()!;
 		iter.next();
 		if (endDate.value.isEarlier(event.start)){
 			break;
-- 
cgit v1.2.3

