aboutsummaryrefslogtreecommitdiff
path: root/src/client/util/TrackMovements.ts
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2023-05-01 12:49:06 -0400
committerbobzel <zzzman@gmail.com>2023-05-01 12:49:06 -0400
commit2a584d4827c9ece87f3bd618201f356237ba7fc7 (patch)
tree76d3a4f8755118b1be75c97edc39aa7445956af5 /src/client/util/TrackMovements.ts
parentae038471f7eda76ecd985e277dda2dc6d27a3be7 (diff)
fixed RecordingBox/View serialization to save docid, not Doc.
Diffstat (limited to 'src/client/util/TrackMovements.ts')
-rw-r--r--src/client/util/TrackMovements.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/util/TrackMovements.ts b/src/client/util/TrackMovements.ts
index 2f16307b3..cb8225643 100644
--- a/src/client/util/TrackMovements.ts
+++ b/src/client/util/TrackMovements.ts
@@ -234,7 +234,7 @@ export class TrackMovements {
const movement: Movement = { time, panX, panY, scale, doc };
// add that movement to the current presentation data's movement array
- this.currentPresentation.movements && this.currentPresentation.movements.push(movement);
+ this.currentPresentation.movements?.push(movement);
};
// method that concatenates an array of presentatations into one