Commit 0cdf00b5 authored by Boris Kocherov's avatar Boris Kocherov

fix gadget_complex_demo_form.js

parent 9dafc5c3
/*jslint nomen: true, maxlen: 200, indent: 2*/ /*jslint nomen: true, maxlen: 200, indent: 2*/
/*global rJS, console, window, document, RSVP, jIO*/ /*global rJS, console, window, document, RSVP*/
(function (window, rJS, jIO) { (function (window, rJS) {
"use strict"; "use strict";
function transform_olap_dimensions(g, dimensions) { function transform_olap_dimensions(g, dimensions) {
...@@ -128,9 +128,11 @@ ...@@ -128,9 +128,11 @@
used_dimensions = []; used_dimensions = [];
mod = JSON.parse(modification_dict[scope]); mod = JSON.parse(modification_dict[scope]);
for (i = 0; i < mod.length; i += 1) { for (i = 0; i < mod.length; i += 1) {
if (mod[i] !== undefined) {
dimension = g.props.hierarchies[mod[i]].dimension; dimension = g.props.hierarchies[mod[i]].dimension;
used_dimensions.push(dimension); used_dimensions.push(dimension);
} }
}
g.props.axes[scope] = used_dimensions; g.props.axes[scope] = used_dimensions;
} }
} }
...@@ -142,4 +144,4 @@ ...@@ -142,4 +144,4 @@
]); ]);
}); });
}(window, rJS, jIO)); }(window, rJS));
\ No newline at end of file \ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment