From 87792248abadeb4cd1361530bdef2472bfcb5cbf Mon Sep 17 00:00:00 2001 From: bobzel Date: Fri, 12 Mar 2021 18:09:46 -0500 Subject: dont add kvp docs to unused tabs --- src/client/views/collections/CollectionDockingView.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/client/views/collections/CollectionDockingView.tsx b/src/client/views/collections/CollectionDockingView.tsx index 7d07439ce..5da75b1b7 100644 --- a/src/client/views/collections/CollectionDockingView.tsx +++ b/src/client/views/collections/CollectionDockingView.tsx @@ -380,7 +380,7 @@ export class CollectionDockingView extends CollectionSubView(doc => doc) { tabs && (Doc.GetProto(tabs).data = new List(docs)); const otherSet = new Set(); otherdocs?.filter(doc => !docs.includes(doc)).forEach(doc => otherSet.add(doc)); - tabdocs?.filter(doc => !docs.includes(doc)).forEach(doc => otherSet.add(doc)); + tabdocs?.filter(doc => !docs.includes(doc) && doc.type !== DocumentType.KVP).forEach(doc => otherSet.add(doc)); other && (Doc.GetProto(other).data = new List(Array.from(otherSet.values()))); }, 0); } -- cgit v1.2.3-70-g09d2