diff options
Diffstat (limited to 'frontend/app/views/page/components/page.editor.js')
| -rw-r--r-- | frontend/app/views/page/components/page.editor.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/frontend/app/views/page/components/page.editor.js b/frontend/app/views/page/components/page.editor.js index 7e841ef..adf8652 100644 --- a/frontend/app/views/page/components/page.editor.js +++ b/frontend/app/views/page/components/page.editor.js @@ -178,7 +178,7 @@ class PageEditor extends Component { const { res } = this.props.page.show const { settings } = res const pageStyle = { backgroundColor: settings ? settings.background_color : '#000000' } - const videoBounds = (res.tiles.length && res.tiles[0].type === 'video') ? { + const videoBounds = (res.tiles && res.tiles.length && res.tiles[0].type === 'video') ? { width: res.tiles[0].settings.width, height: res.tiles[0].settings.height, } : this.state.bounds |
