Skip to content

Commit 0ddae51

Browse files
Do not render widget if no basic MDX is set
1 parent b46fea3 commit 0ddae51

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "LightPivotTable",
33
"author": "ZitRo",
4-
"version": "1.4.11",
4+
"version": "1.4.12",
55
"description": "A lightweight pivot table for MDX2JSON source for InterSystems Cache",
66
"main": "test/testServer.js",
77
"repository": {

source/js/LightPivotTable.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,11 @@ LightPivotTable.prototype.refresh = function () {
5050
var _ = this,
5151
i;
5252

53+
if (!this.dataSource.BASIC_MDX) {
54+
console.log("Unable to refresh: no basic MDX set.");
55+
return;
56+
}
57+
5358
this.clearFilters();
5459
if (this.CONFIG["defaultFilterSpecs"] instanceof Array) {
5560
for (i in this.CONFIG["defaultFilterSpecs"]) {

0 commit comments

Comments
 (0)