Merge pull request #471 from EverythingMe/fix/visualization_api

Fix: opening viz editor resets its options
This commit is contained in:
Arik Fraimovich 2015-07-02 13:17:50 +03:00
commit a1d49f13d3

View File

@ -153,7 +153,10 @@
scope.visualization.name = _.string.titleize(scope.visualization.type);
}
scope.visualization.options = Visualization.visualizations[scope.visualization.type].defaultOptions;
if (type && oldType != type && scope.visualization) {
scope.visualization.options = Visualization.visualizations[scope.visualization.type].defaultOptions;
}
});
scope.submit = function () {