diff options
author | bob <bcz@cs.brown.edu> | 2019-05-13 10:56:12 -0400 |
---|---|---|
committer | bob <bcz@cs.brown.edu> | 2019-05-13 10:56:12 -0400 |
commit | 48b0f98ea2519d861a0eecee541dc0986a2c2f12 (patch) | |
tree | 80b6baeeb62989385c7d364639e52817aff93482 /src/client/views/nodes/CollectionFreeFormDocumentView.tsx | |
parent | 762394f2d226501a95ba34edebcbea7ba9bf6a47 (diff) |
small fixes
Diffstat (limited to 'src/client/views/nodes/CollectionFreeFormDocumentView.tsx')
-rw-r--r-- | src/client/views/nodes/CollectionFreeFormDocumentView.tsx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/client/views/nodes/CollectionFreeFormDocumentView.tsx b/src/client/views/nodes/CollectionFreeFormDocumentView.tsx index 817a23ce8..2a041bf70 100644 --- a/src/client/views/nodes/CollectionFreeFormDocumentView.tsx +++ b/src/client/views/nodes/CollectionFreeFormDocumentView.tsx @@ -189,10 +189,8 @@ export class CollectionFreeFormDocumentView extends DocComponent<CollectionFreeF SelectionManager.DeselectAll(); expandedDocs.forEach(maxDoc => { maxDoc.isMinimized = false; - if (!dataDocs || dataDocs.indexOf(maxDoc) == -1) { - CollectionDockingView.Instance.AddRightSplit(maxDoc); - } else { - CollectionDockingView.Instance.CloseRightSplit(maxDoc); + if (!CollectionDockingView.Instance.CloseRightSplit(maxDoc)) { + CollectionDockingView.Instance.AddRightSplit(Doc.MakeCopy(maxDoc)); } }); } |