Skip to content

Commit

Permalink
Update EmbedEditComponent's effect dependencies
Browse files Browse the repository at this point in the history
Co-authored-by: Zebulan Stanphill <[email protected]>
  • Loading branch information
mcsf and ZebulanStanphill authored Jun 12, 2020
1 parent 4a200f0 commit 86e355c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/block-library/src/embed/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ export function getEmbedEditComponent( title, icon, responsive = true ) {
setURL( newURL );
setIsEditingURL( false );
setAttributes( { url: newURL } );
}, [ cannotEmbed, fetching, attributes ] );
}, [ attributes.allowResponsive, attributes.className, cannotEmbed, fetching, preview.html ] );

useEffect( () => {
if ( preview && ! isEditingURL ) {
Expand Down

0 comments on commit 86e355c

Please sign in to comment.