SmartCrawl + Woocommerce

Hello,

When trying to edit an order in woocoomerce, I noticed that the edit order page was throwing javascript errors. Culprit ended up being smartcrawl.

The JS error was:

Cannot read property ‘frames’ of undefined

Based on this github issue (I know it’s a different plugin, but same error).

https://github.com/Yoast/wordpress-seo/issues/3498

I added the following to my theme function file:

add_action( 'admin_enqueue_scripts', 'meta_box_scripts' );
function meta_box_scripts() {

global $post;

wp_enqueue_media( array(
'post' => $post->ID,
) );

}

That seems to have cleared the error…Anyway, just a FYI.