From e625e77a56602f0515cbdfb80d7274d4715d07d8 Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Wed, 2 Jun 2021 12:45:07 -0700 Subject: [PATCH] fix: Data loading loop on old browsers --- app/scenes/Document/components/DataLoader.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/scenes/Document/components/DataLoader.js b/app/scenes/Document/components/DataLoader.js index c91bad68..1c75788b 100644 --- a/app/scenes/Document/components/DataLoader.js +++ b/app/scenes/Document/components/DataLoader.js @@ -42,7 +42,7 @@ const sharedTreeCache = {}; @observer class DataLoader extends React.Component { - @observable sharedTree: ?NavigationNode; + sharedTree: ?NavigationNode; @observable document: ?Document; @observable revision: ?Revision; @observable error: ?Error; @@ -168,8 +168,8 @@ class DataLoader extends React.Component { shareId, }); - this.document = response.document; this.sharedTree = response.sharedTree; + this.document = response.document; sharedTreeCache[this.document.id] = response.sharedTree; if (revisionId && revisionId !== "latest") {