diff options
| author | bobzel <zzzman@gmail.com> | 2021-03-30 11:21:30 -0400 |
|---|---|---|
| committer | bobzel <zzzman@gmail.com> | 2021-03-30 11:21:30 -0400 |
| commit | b359d42651e0385ffb06d2beb2ee2dbee1f880e7 (patch) | |
| tree | dbe01bf62610677bad47ea6cf95fd2b1a9d9ec74 /src/client/views/collections/CollectionStackedTimeline.tsx | |
| parent | 6c689a999e22fc414386e39007ca0929057ff1d8 (diff) | |
more cleanup
Diffstat (limited to 'src/client/views/collections/CollectionStackedTimeline.tsx')
| -rw-r--r-- | src/client/views/collections/CollectionStackedTimeline.tsx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/client/views/collections/CollectionStackedTimeline.tsx b/src/client/views/collections/CollectionStackedTimeline.tsx index 3168ef4ba..6a1242f20 100644 --- a/src/client/views/collections/CollectionStackedTimeline.tsx +++ b/src/client/views/collections/CollectionStackedTimeline.tsx @@ -35,6 +35,7 @@ export type CollectionStackedTimelineProps = { startTag: string; endTag: string; mediaPath: string; + dictationKey: string; }; @observer @@ -237,7 +238,7 @@ export class CollectionStackedTimeline extends CollectionSubView<PanZoomDocument timelineContentHeight = () => this.props.PanelHeight() * 2 / 3; dictationScreenToLocalTransform = () => this.props.ScreenToLocalTransform().translate(0, -this.timelineContentHeight()); @computed get renderDictation() { - const dictation = Cast(this.dataDoc[this.props.fieldKey.replace("annotations", "dictation")], Doc, null); + const dictation = Cast(this.dataDoc[this.props.dictationKey], Doc, null); return !dictation ? (null) : <div style={{ position: "absolute", height: this.dictationHeight(), top: this.timelineContentHeight(), background: "tan" }}> <DocumentView {...OmitKeys(this.props, ["NativeWidth", "NativeHeight", "setContentView"]).omit} Document={dictation} |
