aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2023-06-19 20:30:12 -0400
committerbobzel <zzzman@gmail.com>2023-06-19 20:30:12 -0400
commit1bc15f9b408d35639cea37ea1c29e7cdbd326301 (patch)
treebf16dacd6ee1d09cf98b48abc94f6555f37f3868 /src
parentc080f6aa2abd0539e61486032c3483a1108b9e14 (diff)
fixed not adding key value panes to header bar
Diffstat (limited to 'src')
-rw-r--r--src/client/views/collections/CollectionDockingView.tsx2
-rw-r--r--src/client/views/nodes/trails/PresBox.tsx2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/client/views/collections/CollectionDockingView.tsx b/src/client/views/collections/CollectionDockingView.tsx
index 1173f522e..a5d7e7864 100644
--- a/src/client/views/collections/CollectionDockingView.tsx
+++ b/src/client/views/collections/CollectionDockingView.tsx
@@ -471,7 +471,7 @@ export class CollectionDockingView extends CollectionSubView() {
tabDestroyed = (tab: any) => {
this._flush = this._flush ?? UndoManager.StartBatch('tab movement');
- if (tab.DashDoc && ![DocumentType.KVP, DocumentType.PRES].includes(tab.DashDoc?.type)) {
+ if (tab.DashDoc && ![DocumentType.PRES].includes(tab.DashDoc?.type) && !tab.contentItem.config.props.keyValue) {
Doc.AddDocToList(Doc.MyHeaderBar, 'data', tab.DashDoc);
Doc.AddDocToList(Doc.MyRecentlyClosed, 'data', tab.DashDoc, undefined, true, true);
}
diff --git a/src/client/views/nodes/trails/PresBox.tsx b/src/client/views/nodes/trails/PresBox.tsx
index 1e622e9ff..4f7d2e1c1 100644
--- a/src/client/views/nodes/trails/PresBox.tsx
+++ b/src/client/views/nodes/trails/PresBox.tsx
@@ -303,7 +303,7 @@ export class PresBox extends ViewBoxBaseComponent<FieldViewProps>() {
targetView.docView._animateScalingTo = 1.2;
targetView.docView._animateScaleTime = 400;
Doc.AddUnHighlightWatcher(() => {
- targetView.docView._animateScaleTime = undefined;
+ targetView.docView!._animateScaleTime = undefined;
targetView!.docView!._animateScalingTo = 0;
});
}