Skip to content

Commit

Permalink
Fix no data to display not showing in some cases
Browse files Browse the repository at this point in the history
  • Loading branch information
nikitaeverywhere committed Mar 18, 2018
1 parent dea08fb commit 8d5c573
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions source/js/DataSource.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
});
Expand Down

0 comments on commit 8d5c573

Please sign in to comment.