aboutsummaryrefslogtreecommitdiff
path: root/src/client/util/TrackMovements.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/util/TrackMovements.ts')
-rw-r--r--src/client/util/TrackMovements.ts8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/client/util/TrackMovements.ts b/src/client/util/TrackMovements.ts
index 0e56ee1bc..f9c2d522f 100644
--- a/src/client/util/TrackMovements.ts
+++ b/src/client/util/TrackMovements.ts
@@ -1,4 +1,4 @@
-import { IReactionDisposer, observable, observe, reaction } from 'mobx';
+import { IReactionDisposer, makeObservable, observable, observe, reaction } from 'mobx';
import { NumCast } from '../../fields/Types';
import { Doc, DocListCast } from '../../fields/Doc';
import { CollectionDockingView } from '../views/collections/CollectionDockingView';
@@ -40,7 +40,7 @@ export class TrackMovements {
constructor() {
// init the global instance
TrackMovements._instance = this;
-
+ makeObservable(this);
// init the instance variables
this.currentPresentation = TrackMovements.NULL_PRESENTATION;
this.tracking = false;
@@ -126,12 +126,12 @@ export class TrackMovements {
}
// init the dispose funcs on the page
- const docList = DocListCast(CollectionDockingView.Instance?.props.Document.data);
+ const docList = DocListCast(CollectionDockingView.Instance?.Document.data);
this.updateRecordingFFViewsFromTabs(docList);
// create a reaction to monitor changes in tabs
this.tabChangeDisposeFunc = reaction(
- () => CollectionDockingView.Instance?.props.Document.data,
+ () => CollectionDockingView.Instance?.Document.data,
change => {
// TODO: consider changing between dashboards
// console.info('change in tabs', change);