From 58a80118b8b219417e4b22839b1d2bde197b0eb6 Mon Sep 17 00:00:00 2001
From: bobzel <zzzman@gmail.com>
Date: Thu, 20 Mar 2025 14:34:32 -0400
Subject: mapbox cleanup.  fix runtime warnings for stacking view.

---
 src/client/views/collections/CollectionStackingView.tsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'src/client/views/collections/CollectionStackingView.tsx')

diff --git a/src/client/views/collections/CollectionStackingView.tsx b/src/client/views/collections/CollectionStackingView.tsx
index 6bbd43b1b..392d85af3 100644
--- a/src/client/views/collections/CollectionStackingView.tsx
+++ b/src/client/views/collections/CollectionStackingView.tsx
@@ -404,7 +404,7 @@ export class CollectionStackingView extends CollectionSubView<Partial<collection
         const { translateX, translateY, scale } = ClientUtils.GetScreenTransform(dref?.ContentDiv);
         return new Transform(-translateX + (dref?.centeringX || 0) * scale, 
                              -translateY + (dref?.centeringY || 0) * scale, 1)
-                  .scale(1 / scale); // prettier-ignore
+                  .scale(1 / (scale||1)); // prettier-ignore
     });
     getDocWidth = computedFn((d?: Doc) => () => {
         if (!d) return 0;
-- 
cgit v1.2.3-70-g09d2

