aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/collections
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/views/collections')
-rw-r--r--src/client/views/collections/TabDocView.tsx4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/client/views/collections/TabDocView.tsx b/src/client/views/collections/TabDocView.tsx
index fd50c6273..5c815c1f6 100644
--- a/src/client/views/collections/TabDocView.tsx
+++ b/src/client/views/collections/TabDocView.tsx
@@ -386,7 +386,6 @@ export class TabDocView extends React.Component<TabDocViewProps> {
}
afterFocus?.(false);
}
- setView = action((view: DocumentView) => this._view = view);
active = () => this._isActive;
//
@@ -504,9 +503,8 @@ export class TabDocView extends React.Component<TabDocViewProps> {
@computed get docView() {
TraceMobx();
return !this._activated || !this._document || this._document._viewType === CollectionViewType.Docking ? (null) :
- <><DocumentView key={this._document[Id]}
+ <><DocumentView key={this._document[Id]} ref={action((r: DocumentView) => this._view = r)}
Document={this._document}
- getView={this.setView}
DataDoc={!Doc.AreProtosEqual(this._document[DataSym], this._document) ? this._document[DataSym] : undefined}
bringToFront={emptyFunction}
rootSelected={returnTrue}