From d3c3667c796c85b36f5846dedf7aa618e95b350d Mon Sep 17 00:00:00 2001 From: Riad Benguella Date: Thu, 3 Aug 2017 12:37:38 +0100 Subject: [PATCH] Embed Block: Fix rendering the embed blocks, the settings are not provided as a prop anymore --- blocks/library/embed/index.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/blocks/library/embed/index.js b/blocks/library/embed/index.js index fdb5fa33813d9c..071de38c3660dc 100644 --- a/blocks/library/embed/index.js +++ b/blocks/library/embed/index.js @@ -116,7 +116,7 @@ function getEmbedBlockSettings( { title, icon, category = 'embed' } ) { render() { const { html, type, error, fetching } = this.state; const { align, url, caption } = this.props.attributes; - const { setAttributes, focus, setFocus, settings } = this.props; + const { setAttributes, focus, setFocus } = this.props; const updateAlignment = ( nextAlign ) => setAttributes( { align: nextAlign } ); const controls = ( @@ -125,7 +125,6 @@ function getEmbedBlockSettings( { title, icon, category = 'embed' } ) { )