aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorusodhi <61431818+usodhi@users.noreply.github.com>2021-06-21 22:35:51 -0400
committerusodhi <61431818+usodhi@users.noreply.github.com>2021-06-21 22:35:51 -0400
commit15614106911a419605cfeb692f15cb2c8d18d97c (patch)
tree15df3ed7bf89849d26bc2b906774c0a77dbb6ba4
parent3dcf29b8c96eb93eda5c0d75475a36821036130e (diff)
parentdb2864dfbe85f411e0a098447a7684e104a093ed (diff)
Merge branch 'master' of https://github.com/browngraphicslab/Dash-Web into sharing_scenario
-rw-r--r--src/client/views/nodes/ScreenshotBox.tsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/views/nodes/ScreenshotBox.tsx b/src/client/views/nodes/ScreenshotBox.tsx
index 252c029e4..700f8a7d3 100644
--- a/src/client/views/nodes/ScreenshotBox.tsx
+++ b/src/client/views/nodes/ScreenshotBox.tsx
@@ -252,8 +252,8 @@ export class ScreenshotBox extends ViewBoxAnnotatableComponent<ViewBoxAnnotatabl
this.dataDoc.mediaState = "recording";
DocUtils.ActiveRecordings.push(this);
} else {
- this._audioRec.stop();
- this._videoRec.stop();
+ this._audioRec?.stop();
+ this._videoRec?.stop();
this.dataDoc.mediaState = "paused";
const ind = DocUtils.ActiveRecordings.indexOf(this);
ind !== -1 && (DocUtils.ActiveRecordings.splice(ind, 1));