diff --git a/src/Commands/RefreshCrops.php b/src/Commands/RefreshCrops.php index f7a47e54a..1a6750611 100755 --- a/src/Commands/RefreshCrops.php +++ b/src/Commands/RefreshCrops.php @@ -106,9 +106,10 @@ public function handle() $this->roleName = $this->argument('roleName'); - $mediasParams = app($this->modelName)->getMediasParams(); - if (empty($mediasParams)) { + if (app($this->modelName) instanceof \A17\Twill\Models\Block) { $mediasParams = TwillBlocks::getAllCropConfigs(); + } else { + $mediasParams = app($this->modelName)->getMediasParams(); } if (! isset($mediasParams[$this->roleName])) {