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:
-rw-r--r--plugins/CoreVisualizations/javascripts/seriesPicker.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/CoreVisualizations/javascripts/seriesPicker.js b/plugins/CoreVisualizations/javascripts/seriesPicker.js
index 2a722cd539..199fa3154a 100644
--- a/plugins/CoreVisualizations/javascripts/seriesPicker.js
+++ b/plugins/CoreVisualizations/javascripts/seriesPicker.js
@@ -300,7 +300,7 @@
}
// create selectable rows list
- if (this.selectableRows) {
+ if ($.isArray(this.selectableRows) && this.selectableRows.length) {
// "records to plot" subheadline
var header = $('<p/>').addClass('headline').addClass('recordsToPlot').html(this.lang.recordsToPlot);
popover.append(header);
@@ -360,4 +360,4 @@
var exports = require('piwik/DataTableVisualizations/Widgets');
exports.SeriesPicker = SeriesPicker;
-})(jQuery, document, require); \ No newline at end of file
+})(jQuery, document, require);