diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2021-03-22 16:06:13 +0100 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2021-03-22 16:06:13 +0100 |
| commit | 285bc89a400c2faa7b6c7c327300c7842711935b (patch) | |
| tree | 5d6d3c6e2f6b844a5cd4ef980c8c3237a806dabe /frontend/app/views/page | |
| parent | 30265efd64167e9fd6b5a489bd7f8239b496ed35 (diff) | |
fix proportional sizing
Diffstat (limited to 'frontend/app/views/page')
| -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 |
