Skip to content

Commit

Permalink
CS Fixer
Browse files Browse the repository at this point in the history
  • Loading branch information
intraordinaire committed Jan 16, 2025
1 parent 8f8f3e5 commit aafd9cd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Traits/Hooks/UseActionAdminControllerSetMedia.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ protected function addAdminControllerMedia(string $setMediaMethod, int $order =
* Add JS and CSS file
*
* @param array $hookParams
*
* @return void
*/
protected function loadMediaForAdminControllerSetMedia(array $hookParams): void
Expand Down Expand Up @@ -119,14 +120,13 @@ private function loadCdcMedia(array $hookParams): void
) {
return;
}
if(
if (
Tab::mayDisplayRecommendedModules($controllerName)
&& $this->isSymfonyContext() && !empty($hookParams['route']) && !str_ends_with($hookParams['route'], '_index')
) {
return;
}


$this->context->controller->addJs($this->getPathUri() . 'views/js/cdc-error-templating.js');
$this->context->controller->addCss($this->getPathUri() . 'views/css/cdc-error-templating.css');

Expand Down

0 comments on commit aafd9cd

Please sign in to comment.