From 285bc89a400c2faa7b6c7c327300c7842711935b Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Mon, 22 Mar 2021 16:06:13 +0100 Subject: fix proportional sizing --- frontend/app/views/page/components/page.editor.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'frontend/app/views/page/components/page.editor.js') 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 -- cgit v1.2.3-70-g09d2