diff options
| author | bobzel <zzzman@gmail.com> | 2022-03-24 09:58:01 -0400 |
|---|---|---|
| committer | bobzel <zzzman@gmail.com> | 2022-03-24 09:58:01 -0400 |
| commit | 6e61005b3b6dd8deeb3ca43a8c6241d7778a1998 (patch) | |
| tree | 953597dd95978aee5f9d6347e1d3cdc63781d77d /src/client/views/nodes/VideoBox.tsx | |
| parent | 9379d15829aeac6c13ac6d2333c883c4d3f57d9f (diff) | |
fixed videoBox play issue. cleaned up global referencing a bit.
Diffstat (limited to 'src/client/views/nodes/VideoBox.tsx')
| -rw-r--r-- | src/client/views/nodes/VideoBox.tsx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/client/views/nodes/VideoBox.tsx b/src/client/views/nodes/VideoBox.tsx index 913123cda..804ba777e 100644 --- a/src/client/views/nodes/VideoBox.tsx +++ b/src/client/views/nodes/VideoBox.tsx @@ -477,7 +477,7 @@ export class VideoBox extends ViewBoxAnnotatableComponent<ViewBoxAnnotatableProp @action removeCurrentlyPlaying = () => { if (CollectionStackedTimeline.CurrentlyPlaying) { - const index = CollectionStackedTimeline.CurrentlyPlaying.indexOf(this.layoutDoc.doc as Doc); + const index = CollectionStackedTimeline.CurrentlyPlaying.indexOf(this.layoutDoc); index !== -1 && CollectionStackedTimeline.CurrentlyPlaying.splice(index, 1); } } @@ -488,8 +488,8 @@ export class VideoBox extends ViewBoxAnnotatableComponent<ViewBoxAnnotatableProp if (!CollectionStackedTimeline.CurrentlyPlaying) { CollectionStackedTimeline.CurrentlyPlaying = []; } - if (CollectionStackedTimeline.CurrentlyPlaying.indexOf(this.layoutDoc.doc as Doc) == -1) { - CollectionStackedTimeline.CurrentlyPlaying.push(this.layoutDoc.doc as Doc); + if (CollectionStackedTimeline.CurrentlyPlaying.indexOf(this.layoutDoc) == -1) { + CollectionStackedTimeline.CurrentlyPlaying.push(this.layoutDoc); } } |
