diff options
| author | bobzel <zzzman@gmail.com> | 2019-09-20 15:11:30 -0400 | 
|---|---|---|
| committer | bobzel <zzzman@gmail.com> | 2019-09-20 15:11:30 -0400 | 
| commit | 6f7936d5c71bf3c802d73f47b19abe96c6d61848 (patch) | |
| tree | 266d2f5f47bdde960656a5a14888b7bba09fac62 /src/client/views/nodes/VideoBox.tsx | |
| parent | 2a003f69f8b5323c2a6b244332b1511df1ef0cc1 (diff) | |
simplified script execution api a little.  fixed dataDoc() related stuff in various Box's.  fixed some template stuff.
Diffstat (limited to 'src/client/views/nodes/VideoBox.tsx')
| -rw-r--r-- | src/client/views/nodes/VideoBox.tsx | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/src/client/views/nodes/VideoBox.tsx b/src/client/views/nodes/VideoBox.tsx index aa6be56bb..b7d9a1eab 100644 --- a/src/client/views/nodes/VideoBox.tsx +++ b/src/client/views/nodes/VideoBox.tsx @@ -257,7 +257,7 @@ export class VideoBox extends DocComponent<FieldViewProps, VideoDocument>(VideoD      } -    @computed get dataDoc() { return this.props.DataDoc && (BoolCast(this.props.Document.isTemplate) || BoolCast(this.props.DataDoc.isTemplate) || this.props.DataDoc.layout === this.props.Document) ? this.props.DataDoc : Doc.GetProto(this.props.Document); } +    @computed get dataDoc() { return this.props.DataDoc && this.props.Document.isTemplate ? this.props.DataDoc : Doc.GetProto(this.props.Document); }      @computed get youtubeContent() {          this._youtubeIframeId = VideoBox._youtubeIframeCounter++; | 
