Skip to content

Commit

Permalink
Fixed exception: "Property 'jsmodule_pipeline_include_externals' does…
Browse files Browse the repository at this point in the history
… not exist in the object!" (#3661)

Co-authored-by: Artemkin_V <[email protected]>
  • Loading branch information
Vital and Artemkin_V authored Oct 24, 2023
1 parent d0ae677 commit 2179ef3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions system/src/Grav/Common/Assets.php
Original file line number Diff line number Diff line change
Expand Up @@ -398,6 +398,9 @@ protected function filterAssets($assets, $key, $value, $sort = false)

if ($key === 'position' && $value === 'pipeline') {
$type = $asset->getType();
if ($type === 'jsmodule') {
$type = 'js_module';
}

if ($asset->getRemote() && $this->{strtolower($type) . '_pipeline_include_externals'} === false && $asset['position'] === 'pipeline') {
if ($this->{strtolower($type) . '_pipeline_before_excludes'}) {
Expand Down

0 comments on commit 2179ef3

Please sign in to comment.