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*/
/*global rJS, console, window, document, RSVP, jIO*/
/*global rJS, console, window, document, RSVP*/
(function (window, rJS, jIO) {
(function (window, rJS) {
"use strict";
function transform_olap_dimensions(g, dimensions) {
......@@ -128,8 +128,10 @@
used_dimensions = [];
mod = JSON.parse(modification_dict[scope]);
for (i = 0; i < mod.length; i += 1) {
dimension = g.props.hierarchies[mod[i]].dimension;
used_dimensions.push(dimension);
if (mod[i] !== undefined) {
dimension = g.props.hierarchies[mod[i]].dimension;
used_dimensions.push(dimension);
}
}
g.props.axes[scope] = used_dimensions;
}
......@@ -142,4 +144,4 @@
]);
});
}(window, rJS, jIO));
\ No newline at end of file
}(window, rJS));
\ 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