From 2e56299ddfca9cc9e8466b45170ce3f05ee64f15 Mon Sep 17 00:00:00 2001
From: bobzel <zzzman@gmail.com>
Date: Tue, 12 Dec 2023 12:49:58 -0500
Subject: fixed overlay view and scriptingRepl and all observable Doc arrays to
 be shallowly observed.

---
 src/client/views/animationtimeline/Region.tsx | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

(limited to 'src/client/views/animationtimeline/Region.tsx')

diff --git a/src/client/views/animationtimeline/Region.tsx b/src/client/views/animationtimeline/Region.tsx
index bc87dc94d..abbc8203d 100644
--- a/src/client/views/animationtimeline/Region.tsx
+++ b/src/client/views/animationtimeline/Region.tsx
@@ -31,11 +31,11 @@ export namespace RegionHelpers {
         let rightMost: RegionData | undefined = undefined;
         regions.forEach(region => {
             const neighbor = RegionData(region);
-            if (currentRegion.position! > neighbor.position) {
+            if (NumCast(currentRegion.position) > neighbor.position) {
                 if (!leftMost || neighbor.position > leftMost.position) {
                     leftMost = neighbor;
                 }
-            } else if (currentRegion.position! < neighbor.position) {
+            } else if (NumCast(currentRegion.position) < neighbor.position) {
                 if (!rightMost || neighbor.position < rightMost.position) {
                     rightMost = neighbor;
                 }
-- 
cgit v1.2.3-70-g09d2

