Skip to content

Commit 8d5c573

Browse files
Fix no data to display not showing in some cases
1 parent dea08fb commit 8d5c573

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

source/js/DataSource.js

+5-3
Original file line numberDiff line numberDiff line change
@@ -222,9 +222,11 @@ DataSource.prototype.getCurrentData = function (callback) {
222222

223223
})(data));
224224
} else if (mdxType === "mdx") {
225-
if (!data || !data.Data || !data.Cols
226-
|| (!data.Data.length && !((data.Cols[0]||{}).tuples||[]).length)
227-
&& !((data.Cols[1]||{}).tuples||[]).length) {
225+
if (
226+
!data || !data.Data || !data.Data.length || !data.Cols
227+
|| (!data.Data.length && !((data.Cols[0]||{}).tuples||[]).length)
228+
&& !((data.Cols[1]||{}).tuples||[]).length
229+
) {
228230
return callback({
229231
error: pivotLocale.get(4)
230232
});

0 commit comments

Comments
 (0)