diff --git a/rd_ui/app/scripts/visualizations/base.js b/rd_ui/app/scripts/visualizations/base.js index 86581d8b..3177409c 100644 --- a/rd_ui/app/scripts/visualizations/base.js +++ b/rd_ui/app/scripts/visualizations/base.js @@ -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 () {