Skip to content

Commit

Permalink
Fix bug introduced in PR getredash#100 about the title in each visual…
Browse files Browse the repository at this point in the history
…ization tab
  • Loading branch information
christophervalles committed Mar 6, 2014
1 parent afac41d commit 8613904
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rd_ui/app/scripts/visualizations/base.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@

scope.$watch('visualization.type', function (type) {
// if not edited by user, set name to match type
if (type && scope.visualization && !scope.visForm.name.$dirty) {
if (type && scope.visualization && !scope.visForm.name.$dirty && !scope.visualization.name) {
// poor man's titlecase
scope.visualization.name = scope.visualization.type[0] + scope.visualization.type.slice(1).toLowerCase();
}
Expand Down

0 comments on commit 8613904

Please sign in to comment.