aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/nodes/trails
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2023-12-12 14:39:09 -0500
committerbobzel <zzzman@gmail.com>2023-12-12 14:39:09 -0500
commit85c09a9e5df77ad00f3e00a2fb1e0f2e3449f97d (patch)
tree61aa82a95bdd923af1a48c6968aa8a6135f4cf85 /src/client/views/nodes/trails
parent77234b8f1dd2cad90cdf94eaefab55de691305c3 (diff)
cleaned up SelectionManager. fixed schema view
Diffstat (limited to 'src/client/views/nodes/trails')
-rw-r--r--src/client/views/nodes/trails/PresBox.tsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/views/nodes/trails/PresBox.tsx b/src/client/views/nodes/trails/PresBox.tsx
index a224ec7fa..4ff816812 100644
--- a/src/client/views/nodes/trails/PresBox.tsx
+++ b/src/client/views/nodes/trails/PresBox.tsx
@@ -139,7 +139,7 @@ export class PresBox extends ViewBoxBaseComponent<FieldViewProps>() {
return false;
}
@computed get selectedDocumentView() {
- if (SelectionManager.Views().length) return SelectionManager.Views()[0];
+ if (SelectionManager.Views.length) return SelectionManager.Views[0];
if (this.selectedArray.size) return DocumentManager.Instance.getDocumentView(this.Document);
}
@computed get isPres() {
@@ -187,7 +187,7 @@ export class PresBox extends ViewBoxBaseComponent<FieldViewProps>() {
this._unmounting = false;
this.turnOffEdit(true);
this._disposers.selection = reaction(
- () => SelectionManager.Views().slice(),
+ () => SelectionManager.Views.slice(),
views => (!PresBox.Instance || views.some(view => view.Document === this.Document)) && this.updateCurrentPresentation(),
{ fireImmediately: true }
);