aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/MainView.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/views/MainView.tsx')
-rw-r--r--src/client/views/MainView.tsx6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/client/views/MainView.tsx b/src/client/views/MainView.tsx
index 85bf0344b..f7b66cae3 100644
--- a/src/client/views/MainView.tsx
+++ b/src/client/views/MainView.tsx
@@ -273,10 +273,8 @@ export class MainView extends React.Component {
if (initialized && received) {
DocServer.GetRefField(received).then(field => {
if (field instanceof Doc && field.viewType !== CollectionViewType.Docking) {
- const target = Doc.MakeAlias(field);
- const artificialParent = Docs.Create.FreeformDocument([target], { title: `View of ${StrCast(field.title)}` });
- CollectionDockingView.Instance.AddRightSplit(artificialParent, undefined);
- DocumentManager.Instance.jumpToDocument(target, true, undefined, undefined, undefined, artificialParent);
+ CollectionDockingView.Instance.AddRightSplit(field, undefined);
+ DocumentManager.Instance.jumpToDocument(field, true, undefined, undefined, undefined, undefined);
}
});
}