diff options
| author | Terry Truong <terry06890@gmail.com> | 2022-10-18 12:04:17 +1100 |
|---|---|---|
| committer | Terry Truong <terry06890@gmail.com> | 2022-10-18 12:04:17 +1100 |
| commit | 610995001f7f58110e4ff73b68df005a7280a79e (patch) | |
| tree | 66c91c6cd78837da153d49203690a7aa50d300c7 /src/components/TimeLine.vue | |
| parent | 15035fe65e7dd54db83337da3d2b055d8bb668e9 (diff) | |
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)
Diffstat (limited to 'src/components/TimeLine.vue')
| -rw-r--r-- | src/components/TimeLine.vue | 2 |
1 files changed, 1 insertions, 1 deletions
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; |
