Skip to content

Commit

Permalink
remove unneeded dashboard lib inclusion
Browse files Browse the repository at this point in the history
  • Loading branch information
cconard96 authored and cedric-anne committed Oct 22, 2024
1 parent c235bbe commit 8403bcd
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions src/Html.php
Original file line number Diff line number Diff line change
Expand Up @@ -1170,13 +1170,15 @@ public static function includeHeader(
}
}

// include more js libs for dashboard case
$jslibs = array_merge($jslibs, [
'gridstack',
'charts',
'clipboard',
'sortable'
]);
if (in_array('dashboard', $jslibs)) {
// include more js libs for dashboard case
$jslibs = array_merge($jslibs, [
'gridstack',
'charts',
'clipboard',
'sortable'
]);
}

if (in_array('planning', $jslibs)) {
Html::requireJs('planning');
Expand Down

0 comments on commit 8403bcd

Please sign in to comment.