Skip to content

Commit

Permalink
Merge pull request #507 from EverythingMe/cleanup
Browse files Browse the repository at this point in the history
Fix: when editing alerts show correct column
  • Loading branch information
arikfr committed Jul 26, 2015
2 parents c7d30c8 + 5de7921 commit 228b8c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rd_ui/app/scripts/controllers/alerts.js
Expand Up @@ -60,7 +60,7 @@
$scope.selectedQuery = item;
item.getQueryResultPromise().then(function(result) {
$scope.queryResult = result;
$scope.alert.options.column = result.getColumnNames()[0];
$scope.alert.options.column = $scope.alert.options.column || result.getColumnNames()[0];
});
};

Expand Down

0 comments on commit 228b8c7

Please sign in to comment.