diff --git a/source/js/DataSource.js b/source/js/DataSource.js index 0d30d08..34026ae 100644 --- a/source/js/DataSource.js +++ b/source/js/DataSource.js @@ -222,9 +222,11 @@ DataSource.prototype.getCurrentData = function (callback) { })(data)); } else if (mdxType === "mdx") { - if (!data || !data.Data || !data.Cols - || (!data.Data.length && !((data.Cols[0]||{}).tuples||[]).length) - && !((data.Cols[1]||{}).tuples||[]).length) { + if ( + !data || !data.Data || !data.Data.length || !data.Cols + || (!data.Data.length && !((data.Cols[0]||{}).tuples||[]).length) + && !((data.Cols[1]||{}).tuples||[]).length + ) { return callback({ error: pivotLocale.get(4) });