Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordizzy <diosmosis@users.noreply.github.com>2022-03-17 21:20:02 +0300
committerGitHub <noreply@github.com>2022-03-17 21:20:02 +0300
commit988f3048239d0e0da3dc57bda8e71b609a0ad85e (patch)
treef32b3a0d9bc510b7c0ac3b8187152dca256ea948 /plugins/Morpheus
parent0befce93e20150301d0d6ff8a067eb3b855fbf16 (diff)
default to empty string if attr returns undefined (#18961)
Diffstat (limited to 'plugins/Morpheus')
-rw-r--r--plugins/Morpheus/javascripts/piwikHelper.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/Morpheus/javascripts/piwikHelper.js b/plugins/Morpheus/javascripts/piwikHelper.js
index 4a544e22f4..165a24d7b6 100644
--- a/plugins/Morpheus/javascripts/piwikHelper.js
+++ b/plugins/Morpheus/javascripts/piwikHelper.js
@@ -166,7 +166,7 @@ window.piwikHelper = {
$('[vue-entry]', selector).add($(selector).filter('[vue-entry]')).each(function () {
var entry = $(this).attr('vue-entry');
- var componentsToRegister = $(this).attr('vue-components').split(/\s+/).filter(function (s) {
+ var componentsToRegister = ($(this).attr('vue-components') || '').split(/\s+/).filter(function (s) {
return !!s.length;
});