diff options
| author | bobzel <zzzman@gmail.com> | 2021-02-10 18:31:40 -0500 |
|---|---|---|
| committer | bobzel <zzzman@gmail.com> | 2021-02-10 18:31:40 -0500 |
| commit | c37675d530f77ad2c077d0155d2ee3e35c55978b (patch) | |
| tree | c37150cbdbb7fde9f87b033b4bb24554985b1ca0 /src/client/views/nodes/VideoBox.tsx | |
| parent | 01081a8d2064127bfeccbd52dfaae10728123b9f (diff) | |
fixed creating videoBox anchor to reference the whole doc when the timecode is 0. fixed following links to a document that has a colleciton context to open the context properly.
Diffstat (limited to 'src/client/views/nodes/VideoBox.tsx')
| -rw-r--r-- | src/client/views/nodes/VideoBox.tsx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/client/views/nodes/VideoBox.tsx b/src/client/views/nodes/VideoBox.tsx index a821eb7c2..c0247c226 100644 --- a/src/client/views/nodes/VideoBox.tsx +++ b/src/client/views/nodes/VideoBox.tsx @@ -70,7 +70,8 @@ export class VideoBox extends ViewBoxAnnotatableComponent<FieldViewProps, VideoD } getAnchor = () => { - return CollectionStackedTimeline.createAnchor(this.rootDoc, this.dataDoc, this.annotationKey + "-timeline", "videoStart", "videoEnd", Cast(this.layoutDoc._currentTimecode, "number", null)) || this.rootDoc; + const timecode = Cast(this.layoutDoc._currentTimecode, "number", null); + return CollectionStackedTimeline.createAnchor(this.rootDoc, this.dataDoc, this.annotationKey + "-timeline", "videoStart", "videoEnd", timecode ? timecode : undefined) || this.rootDoc; } choosePath(url: string) { |
