Skip to content

Commit d7ee4ed

Browse files
simple fix
1 parent da6b4c3 commit d7ee4ed

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

source/js/DataController.js

+6-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,12 @@ var DataController = function (controller, dataChangeTrigger) {
2929
DataController.prototype.isValidData = function (data) {
3030

3131
// add null column to display measures
32-
if (!data.dimensions[0].length) data.dimensions[0] = [{}];
32+
if (
33+
data.dimensions instanceof Array
34+
&& data.dimensions[0] instanceof Array
35+
&& !data.dimensions[0].length
36+
)
37+
data.dimensions[0] = [{}];
3338

3439
return data.dimensions instanceof Array
3540
&& data.dimensions[0] instanceof Array

0 commit comments

Comments
 (0)