aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/collections/CollectionDockingView.tsx
diff options
context:
space:
mode:
authorTyler Schicke <tyler_schicke@brown.edu>2019-05-16 18:32:57 -0400
committerTyler Schicke <tyler_schicke@brown.edu>2019-05-16 18:32:57 -0400
commitb29a0d1cef60b55f609fcd94ad38232ae557e681 (patch)
tree3b2cf48d0ac27582da8603ca7f614b68f874ab0c /src/client/views/collections/CollectionDockingView.tsx
parent179200777d8d283509bc81ea1318c1f51c2251ce (diff)
Fixed linter errors
Diffstat (limited to 'src/client/views/collections/CollectionDockingView.tsx')
-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 58f1e33a1..deec64225 100644
--- a/src/client/views/collections/CollectionDockingView.tsx
+++ b/src/client/views/collections/CollectionDockingView.tsx
@@ -83,7 +83,7 @@ export class CollectionDockingView extends React.Component<SubCollectionViewProp
child.contentItems[0].remove();
this.layoutChanged(document);
return true;
- } else
+ } else {
Array.from(child.contentItems).filter((tab: any) => tab.config.component === "DocumentFrameRenderer").some((tab: any, j: number) => {
if (Doc.AreProtosEqual(DocumentManager.Instance.getDocumentViewById(tab.config.props.documentId)!.Document, document)) {
child.contentItems[j].remove();
@@ -94,8 +94,9 @@ export class CollectionDockingView extends React.Component<SubCollectionViewProp
}
return false;
});
+ }
return false;
- })
+ });
}
if (retVal) {
this.stateChanged();