diff --git a/app/system/traits/CombinesAssets.php b/app/system/traits/CombinesAssets.php index eb18bdb343..955c2dadb6 100644 --- a/app/system/traits/CombinesAssets.php +++ b/app/system/traits/CombinesAssets.php @@ -175,7 +175,7 @@ protected function prepareAssets(array $assets) return $this->getAssetPath($path); }, $assets); - return $assets; + return array_filter($assets); } protected function prepareCombiner(array $assets, $targetPath = null)