diff options
Diffstat (limited to 'frontend/views/page/components/page.editor.js')
| -rw-r--r-- | frontend/views/page/components/page.editor.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/frontend/views/page/components/page.editor.js b/frontend/views/page/components/page.editor.js index 24e2075..bee86a0 100644 --- a/frontend/views/page/components/page.editor.js +++ b/frontend/views/page/components/page.editor.js @@ -152,6 +152,7 @@ class PageEditor extends Component { this.props.tileActions.updateTemporaryTile(updatedTile) } if (tile.id !== 'new') { + console.log(updatedTile) this.props.pageActions.updatePageTile(updatedTile) actions.tile.update(updatedTile) } @@ -167,7 +168,8 @@ class PageEditor extends Component { const currentTile = this.state.tile const currentBox = this.state.box const { res } = this.props.page.show - const pageStyle = { backgroundColor: res.settings.background_color || '#000000' } + const { settings } = res + const pageStyle = { backgroundColor: settings ? settings.background_color : '#000000' } return ( <div className='page' ref={this.pageRef} style={pageStyle}> {res.tiles.map(tile => { |
