diff --git a/src/Editor/AbstractBlock.php b/src/Editor/AbstractBlock.php index 734a724..d9227f2 100644 --- a/src/Editor/AbstractBlock.php +++ b/src/Editor/AbstractBlock.php @@ -99,7 +99,7 @@ public function enqueueAssets(array $blocks, array $assets): void if ($this->name === $block['blockName']) { array_map(function (array $asset) use ($block): void { if (empty($asset['condition']) || (is_callable($asset['condition']) && $asset['condition']($block))) { - if (!empty($asset['dependencies'])) { + if (!empty($asset['dependencies']) && false === is_admin()) { bundle($asset['handle'])->enqueueJs(true, $asset['dependencies']); } else { bundle($asset['handle'])->enqueue();