From 54e8450ea88a03bee23cbad3321b5f6bac465e33 Mon Sep 17 00:00:00 2001
From: Bob Zeleznik <zzzman@gmail.com>
Date: Tue, 12 May 2020 13:56:14 -0400
Subject: fixed issues with preselements not updating.    fixed focus issues
 with stacking view for Presentations

---
 src/client/views/collections/CollectionStackingView.tsx | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

(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 97459d910..821a6d476 100644
--- a/src/client/views/collections/CollectionStackingView.tsx
+++ b/src/client/views/collections/CollectionStackingView.tsx
@@ -175,8 +175,8 @@ export class CollectionStackingView extends CollectionSubView(StackingDocument)
 
 
     focusDocument = (doc: Doc, willZoom: boolean, scale?: number, afterFocus?: () => boolean) => {
-        Doc.BrushDoc(this.props.Document);
-        this.props.focus(this.props.Document);
+        Doc.BrushDoc(doc);
+        this.props.focus(doc);
         Doc.linkFollowHighlight(doc);
 
         const found = this._mainCont && Array.from(this._mainCont.getElementsByClassName("documentView-node")).find((node: any) => node.id === doc[Id]);
@@ -186,8 +186,7 @@ export class CollectionStackingView extends CollectionSubView(StackingDocument)
             smoothScroll(500, this._mainCont!, localTop[1] + this._mainCont!.scrollTop);
         }
         afterFocus && setTimeout(() => {
-            if (afterFocus?.()) {
-            }
+            if (afterFocus?.()) { }
         }, 500);
     }
 
-- 
cgit v1.2.3-70-g09d2

