diff options
| author | Tyler Schicke <tyler_schicke@brown.edu> | 2019-05-02 03:29:02 -0400 |
|---|---|---|
| committer | Tyler Schicke <tyler_schicke@brown.edu> | 2019-05-02 03:29:02 -0400 |
| commit | ad9111cdef77795b2eca57b62d203c21cfef3357 (patch) | |
| tree | 2e5f7714118ad1d506bf09e7d723a6d311c2d38f /src/client/views/collections | |
| parent | 2c1cf7fd3e1d71813f23f60acb9264a4f8bf33b0 (diff) | |
Various fixes:
Added a couple missing prototype ids that weren't fetched
Fixed DocServer bug that was affecting docking view
Diffstat (limited to 'src/client/views/collections')
| -rw-r--r-- | src/client/views/collections/CollectionDockingView.tsx | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/client/views/collections/CollectionDockingView.tsx b/src/client/views/collections/CollectionDockingView.tsx index 2facd404f..014773ab6 100644 --- a/src/client/views/collections/CollectionDockingView.tsx +++ b/src/client/views/collections/CollectionDockingView.tsx @@ -292,9 +292,7 @@ export class CollectionDockingView extends React.Component<SubCollectionViewProp DocServer.GetRefField(tab.contentItem.config.props.documentId).then(async f => runInAction(() => { if (f instanceof Doc) { let docs = Cast(CollectionDockingView.Instance.props.Document.data, listSpec(Doc)); - docs && docs.map((d, i) => d[Id] === f[Id] && docs!.splice(i, 1)); - // bcz: this seems like it should work, but it only does occasionally -- usually I get -1 - // docs && docs.indexOf(f) !== -1 && docs.splice(docs.indexOf(f), 1); + docs && docs.indexOf(f) !== -1 && docs.splice(docs.indexOf(f), 1); } })); tab.contentItem.remove(); |
