Skip to content

Commit e4642a7

Browse files
fix #18563 - can't access property toString, data[j][0] is null (#18736)
* fix #18563 - can't access property toString, data[j][0] is null Signed-off-by: Gaurav Singh <talktoogaurav@gmail.com> * Update js/src/chart.js --------- Signed-off-by: Gaurav Singh <talktoogaurav@gmail.com> Co-authored-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
1 parent f26e7d4 commit e4642a7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

js/src/chart.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ JQPlotLineChart.prototype.populateOptions = function (dataTable, options) {
287287
if (optional.axes.xaxis.ticks.length === 0) {
288288
var data = dataTable.getData();
289289
for (var j = 0; j < data.length; j++) {
290-
optional.axes.xaxis.ticks.push(data[j][0].toString());
290+
optional.axes.xaxis.ticks.push(data[j][0] !== null ? data[j][0].toString() : null);
291291
}
292292
}
293293
return optional;

0 commit comments

Comments
 (0)