diff options
| author | bobzel <zzzman@gmail.com> | 2021-03-12 18:09:46 -0500 |
|---|---|---|
| committer | bobzel <zzzman@gmail.com> | 2021-03-12 18:09:46 -0500 |
| commit | 87792248abadeb4cd1361530bdef2472bfcb5cbf (patch) | |
| tree | 9c0106340c1ebe5fa66023320499b3f90d9ff9df | |
| parent | 2a17392bd461bfdc669961c5bf8892b7cb6958d6 (diff) | |
dont add kvp docs to unused tabs
| -rw-r--r-- | src/client/views/collections/CollectionDockingView.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
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<Doc>(docs)); const otherSet = new Set<Doc>(); 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<Doc>(Array.from(otherSet.values()))); }, 0); } |
