@datarailsshared/dr_renderer 1.2.61 → 1.2.62
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
|
@@ -7147,7 +7147,7 @@ let getHighchartsRenderer = function ($, document, Highcharts, default_colors, h
|
|
|
7147
7147
|
return data_row[field_with_variant.name] == variance_config.name && data_row[field_for_sorting.name] != undefined;
|
|
7148
7148
|
});
|
|
7149
7149
|
|
|
7150
|
-
const sorting_variance = widget.options.total_value_options.sorting_variance === '' ? 'asc' : 'desc';
|
|
7150
|
+
const sorting_variance = widget.options.total_value_options && widget.options.total_value_options.sorting_variance === '' ? 'asc' : 'desc';
|
|
7151
7151
|
|
|
7152
7152
|
if (widget.options.chartOptions.delta_column.sort_by_absolute_variance) {
|
|
7153
7153
|
data_sorted = lodash.sortBy(data_sorted, function (o) {
|