diff options
| author | bobzel <zzzman@gmail.com> | 2020-12-10 15:53:26 -0500 |
|---|---|---|
| committer | bobzel <zzzman@gmail.com> | 2020-12-10 15:53:26 -0500 |
| commit | dcf5ba2699d7f83f604bedeadea3ba69061a0fd1 (patch) | |
| tree | 8bfec47280c7eae7ccbb35eeea356ecd44f19bb2 /src/client/views/collections | |
| parent | d913740b994670b1b0eadd52069aeb69ef2b2380 (diff) | |
more cleanup to documentViewprops. got rid of nudge() added
Diffstat (limited to 'src/client/views/collections')
| -rw-r--r-- | src/client/views/collections/TabDocView.tsx | 4 |
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} |
