From 37dc5e155f6e1f237b9091f7fa56e6a688e266f9 Mon Sep 17 00:00:00 2001 From: Steven Dufresne Date: Wed, 13 May 2020 08:59:58 +0900 Subject: [PATCH] Block Directory: Remove case that expects api to return an object instead of an array. (#22289) --- packages/block-directory/src/store/controls.js | 9 --------- 1 file changed, 9 deletions(-) diff --git a/packages/block-directory/src/store/controls.js b/packages/block-directory/src/store/controls.js index 6696a7071b08f..247d3e5b6c6de 100644 --- a/packages/block-directory/src/store/controls.js +++ b/packages/block-directory/src/store/controls.js @@ -146,15 +146,6 @@ const controls = { loadStyle( asset ); } } ); - } else { - loadScript( - assets.editor_script, - () => { - return resolve( 0 ); - }, - reject - ); - loadStyle( assets.style ); } } ); },