From e4c5954e93c6d0b7c337117a5bd296eaa2943bc1 Mon Sep 17 00:00:00 2001 From: Artemkin_V Date: Sat, 24 Dec 2022 07:10:49 +0700 Subject: [PATCH] Fixed exception: "Property 'jsmodule_pipeline_include_externals' does not exist in the object!" --- system/src/Grav/Common/Assets.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/system/src/Grav/Common/Assets.php b/system/src/Grav/Common/Assets.php index 621a140410..85141a39fc 100644 --- a/system/src/Grav/Common/Assets.php +++ b/system/src/Grav/Common/Assets.php @@ -392,6 +392,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'}) {