diff options
| author | bob <bcz@cs.brown.edu> | 2020-03-04 19:06:56 -0500 |
|---|---|---|
| committer | bob <bcz@cs.brown.edu> | 2020-03-04 19:06:56 -0500 |
| commit | 15a4525d83844963357e38e496a3f382e3e720de (patch) | |
| tree | 630ae3f678524a6b54791315e9fe72d10c8ae6dc /src/client/views/nodes/AudioBox.tsx | |
| parent | 3d22c2551b9c4acf7cd24496556603740f6d0736 (diff) | |
border rounding for template key values. added creationTime for dropped documents.
Diffstat (limited to 'src/client/views/nodes/AudioBox.tsx')
| -rw-r--r-- | src/client/views/nodes/AudioBox.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/nodes/AudioBox.tsx b/src/client/views/nodes/AudioBox.tsx index 2b19ca341..2fd70963d 100644 --- a/src/client/views/nodes/AudioBox.tsx +++ b/src/client/views/nodes/AudioBox.tsx @@ -77,7 +77,7 @@ export class AudioBox extends DocExtendableComponent<FieldViewProps, AudioDocume this._reactionDisposer = reaction(() => SelectionManager.SelectedDocuments(), selected => { const sel = selected.length ? selected[0].props.Document : undefined; - this.Document.playOnSelect && this.recordingStart && sel && !Doc.AreProtosEqual(sel, this.props.Document) && this.playFromTime(DateCast(sel.creationDate).date.getTime()); + this.Document.playOnSelect && this.recordingStart && sel && sel.creationDate && !Doc.AreProtosEqual(sel, this.props.Document) && this.playFromTime(DateCast(sel.creationDate).date.getTime()); this.Document.playOnSelect && this.recordingStart && !sel && this.pause(); }); this._scrubbingDisposer = reaction(() => AudioBox._scrubTime, (time) => this.Document.playOnSelect && this.playFromTime(AudioBox._scrubTime)); |
