diff options
author | bobzel <zzzman@gmail.com> | 2020-09-03 11:32:43 -0400 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2020-09-03 11:32:43 -0400 |
commit | eb13fea97b85771b67a69a657309dd45a9a3febf (patch) | |
tree | f0d9cbef1d517108e1277909ed6f77401b313048 /src/client/util/SelectionManager.ts | |
parent | bc0c72f9d53fe76ce9f5592e60681a3e18fa7430 (diff) |
prevented dashboards from being the selectedDocument to avoid issues with the tab layout getting corrupted.
Diffstat (limited to 'src/client/util/SelectionManager.ts')
-rw-r--r-- | src/client/util/SelectionManager.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/client/util/SelectionManager.ts b/src/client/util/SelectionManager.ts index 6d4f2c190..730db4f29 100644 --- a/src/client/util/SelectionManager.ts +++ b/src/client/util/SelectionManager.ts @@ -4,6 +4,7 @@ import { DocumentView } from "../views/nodes/DocumentView"; import { computedFn } from "mobx-utils"; import { List } from "../../fields/List"; import { CollectionSchemaView } from "../views/collections/CollectionSchemaView"; +import { CollectionViewType } from "../views/collections/CollectionView"; export namespace SelectionManager { @@ -93,7 +94,7 @@ export namespace SelectionManager { } export function SelectedDocuments(): Array<DocumentView> { - return Array.from(manager.SelectedDocuments.keys()); + return Array.from(manager.SelectedDocuments.keys()).filter(dv => dv.props.Document._viewType !== CollectionViewType.Docking); } export function SelectedSchemaDoc(): Doc | undefined { return manager.SelectedSchemaDocument; |