diff options
| author | bobzel <zzzman@gmail.com> | 2022-06-21 14:44:48 -0400 |
|---|---|---|
| committer | bobzel <zzzman@gmail.com> | 2022-06-21 14:44:48 -0400 |
| commit | 5c582ee52f3af9515d3397fa7661d068fe1babe8 (patch) | |
| tree | 08e03485cde5df7759de1046d70da4971a048a02 /src/client/views/collections/CollectionDockingView.tsx | |
| parent | 0dd3bbfc119d48bd2c32f8e55b7051e3ddc530c3 (diff) | |
from last and keep keyvalue tabs out of topbar
Diffstat (limited to 'src/client/views/collections/CollectionDockingView.tsx')
| -rw-r--r-- | src/client/views/collections/CollectionDockingView.tsx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/client/views/collections/CollectionDockingView.tsx b/src/client/views/collections/CollectionDockingView.tsx index 19355b8e1..07fcd6a7d 100644 --- a/src/client/views/collections/CollectionDockingView.tsx +++ b/src/client/views/collections/CollectionDockingView.tsx @@ -416,8 +416,10 @@ export class CollectionDockingView extends CollectionSubView() { } tabDestroyed = (tab: any) => { - Doc.AddDocToList(CurrentUserUtils.MyHeaderBar, "data", tab.DashDoc); - Doc.AddDocToList(CurrentUserUtils.MyRecentlyClosed, "data", tab.DashDoc, undefined, true, true); + if(tab.DashDoc?.type !== DocumentType.KVP) { + Doc.AddDocToList(CurrentUserUtils.MyHeaderBar, "data", tab.DashDoc); + Doc.AddDocToList(CurrentUserUtils.MyRecentlyClosed, "data", tab.DashDoc, undefined, true, true); + } const dview = CollectionDockingView.Instance.props.Document; const fieldKey = CollectionDockingView.Instance.props.fieldKey; Doc.RemoveDocFromList(dview, fieldKey, tab.DashDoc); |
