@datarailsshared/dr_renderer 1.2.95 → 1.2.96
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -330,7 +330,7 @@ let getHighchartsRenderer = function ($, document, Highcharts, default_colors, h
|
|
|
330
330
|
chart = chartElement.highcharts();
|
|
331
331
|
} else {
|
|
332
332
|
const graphId = Number(graph_id.split('_')[1]);
|
|
333
|
-
chart = lodash.find(
|
|
333
|
+
chart = lodash.find(Highcharts.charts, function(value) {
|
|
334
334
|
return value.options.widgetId === graphId;
|
|
335
335
|
});
|
|
336
336
|
}
|
|
@@ -6877,9 +6877,9 @@ let getHighchartsRenderer = function ($, document, Highcharts, default_colors, h
|
|
|
6877
6877
|
ret['values'] = element.datetypevalues;
|
|
6878
6878
|
else {
|
|
6879
6879
|
ret['values'] = element['includes'] || element['excludes'] || [];
|
|
6880
|
-
ret['values'] = ret['values'].filter(function (n) {
|
|
6880
|
+
ret['values'] = lodash.isArray(ret['values']) ? ret['values'].filter(function (n) {
|
|
6881
6881
|
return n != undefined
|
|
6882
|
-
});
|
|
6882
|
+
}) : ret['values'];
|
|
6883
6883
|
}
|
|
6884
6884
|
ret['is_excluded'] = element.hasOwnProperty('excludes') && element.excludes != null;
|
|
6885
6885
|
ret['allow_nulls'] = element.hasOwnProperty('allow_nulls') ? element.allow_nulls : false;
|