@datarailsshared/dr_renderer 1.3.37 → 1.3.38

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@datarailsshared/dr_renderer",
3
- "version": "1.3.37",
3
+ "version": "1.3.38",
4
4
  "description": "DataRails charts and tables renderer",
5
5
  "keywords": [
6
6
  "datarails",
@@ -403,6 +403,7 @@ let getHighchartsRenderer = function ($, document, Highcharts, default_colors, h
403
403
  };
404
404
 
405
405
  const isChartTypeSupportedForSmartQuery = (type) => {
406
+ if (!type) return null;
406
407
  return [
407
408
  'line',
408
409
  'spline',
@@ -1420,7 +1421,8 @@ let getHighchartsRenderer = function ($, document, Highcharts, default_colors, h
1420
1421
 
1421
1422
  highchartsRenderer.moveSeriesToSecondYAxisIfNeeded(chart_series, pivotData, chartOptions, additionOptions, opts, opts.total && opts.totalSeriesSettings && opts.totalSeriesSettings.secondaryAxis);
1422
1423
 
1423
- const smartQuerySeries = isChartTypeSupportedForSmartQuery(chartOptions.chart.type)
1424
+ const chartType = chartOptions && chartOptions.chart && chartOptions.chart.type ? chartOptions.chart.type : null;
1425
+ const smartQuerySeries = isChartTypeSupportedForSmartQuery(chartType)
1424
1426
  ? smartQueriesHelper.createSingleDataSeriesForForecast(chart_series, opts.chartOptions)
1425
1427
  : null;
1426
1428