aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBob Zeleznik <zzzman@gmail.com>2019-05-05 14:16:07 -0400
committerBob Zeleznik <zzzman@gmail.com>2019-05-05 14:16:07 -0400
commit237dd0b1280c3f880a1eab9e3cd02b4f882811a5 (patch)
tree46f7386d82036a2305d2041437e8fe846b36d91f /src
parentc04cd067dbfd7a3ad439bd66dc9b8914c03a95ae (diff)
from last
Diffstat (limited to 'src')
-rw-r--r--src/client/views/collections/CollectionDockingView.tsx5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/client/views/collections/CollectionDockingView.tsx b/src/client/views/collections/CollectionDockingView.tsx
index 98a6ffceb..3bee24c2f 100644
--- a/src/client/views/collections/CollectionDockingView.tsx
+++ b/src/client/views/collections/CollectionDockingView.tsx
@@ -233,7 +233,8 @@ export class CollectionDockingView extends React.Component<SubCollectionViewProp
stateChanged = () => {
let docs = Cast(CollectionDockingView.Instance.props.Document.data, listSpec(Doc));
CollectionDockingView.Instance._removedDocs.map(theDoc =>
- docs && docs.indexOf(theDoc) !== -1 && docs.splice(docs.indexOf(theDoc), 1));
+ docs && docs.indexOf(theDoc) !== -1 &&
+ docs.splice(docs.indexOf(theDoc), 1));
CollectionDockingView.Instance._removedDocs.length = 0;
var json = JSON.stringify(this._goldenLayout.toConfig());
this.props.Document.dockingConfig = json;
@@ -286,7 +287,7 @@ export class CollectionDockingView extends React.Component<SubCollectionViewProp
let doc = await DocServer.GetRefField(tab.contentItem.config.props.documentId);
if (doc instanceof Doc) {
let theDoc = doc;
- CollectionDockingView.Instance._removedDocs.push(theDoc.proto ? theDoc.proto : theDoc);
+ CollectionDockingView.Instance._removedDocs.push(theDoc);
}
tab.contentItem.remove();
});