diff --git a/blocks/library/shortcode/preview.js b/blocks/library/shortcode/preview.js index e815a44c5ef327..1193421110d45f 100644 --- a/blocks/library/shortcode/preview.js +++ b/blocks/library/shortcode/preview.js @@ -4,7 +4,7 @@ import { withAPIData, Spinner, SandBox } from '@wordpress/components'; import { __ } from '@wordpress/i18n'; -function ShortcodePreview( { response, setFocus } ) { +function ShortcodePreview( { response } ) { if ( response.isLoading || ! response.data ) { return (
@@ -21,7 +21,6 @@ function ShortcodePreview( { response, setFocus } ) { html={ html } title="Preview" type={ response.data.type } - onFocus={ setFocus } /> );