diff options
author | bobzel <zzzman@gmail.com> | 2020-09-02 21:19:11 -0400 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2020-09-02 21:19:11 -0400 |
commit | 9cbee5f2ed0cfff22fae4428a0858c9b8d770b4f (patch) | |
tree | 3910ac680fe6ac5b4f8d1565b4692969c75629f3 /src | |
parent | 47afd06d5781c74b5131c82c22d93b0eff8fe103 (diff) |
fixed open for docking views to switch dashboards, not open a tab
Diffstat (limited to 'src')
-rw-r--r-- | src/client/views/collections/CollectionDockingView.tsx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/client/views/collections/CollectionDockingView.tsx b/src/client/views/collections/CollectionDockingView.tsx index a3d58f31d..c891d2035 100644 --- a/src/client/views/collections/CollectionDockingView.tsx +++ b/src/client/views/collections/CollectionDockingView.tsx @@ -140,6 +140,7 @@ export class CollectionDockingView extends CollectionSubView(doc => doc) { // @undoBatch public static AddSplit(document: Doc, pullSide: string, stack?: any, panelName?: string) { + if (document._viewType === CollectionViewType.Docking) return CurrentUserUtils.openDashboard(Doc.UserDoc(), document); const instance = CollectionDockingView.Instance; if (!instance) return false; const docContentConfig = CollectionDockingView.makeDocumentConfig(document, panelName); |