diff --git a/client/app/pages/alert/index.js b/client/app/pages/alert/index.js index 3ae8913e1e..4020c39b4a 100644 --- a/client/app/pages/alert/index.js +++ b/client/app/pages/alert/index.js @@ -1,7 +1,7 @@ import { template as templateBuilder } from 'lodash'; import template from './alert.html'; -function AlertCtrl($routeParams, $location, $sce, toastr, currentUser, Query, Events, Alert) { +function AlertCtrl($scope, $routeParams, $location, $sce, toastr, currentUser, Query, Events, Alert) { this.alertId = $routeParams.alertId; if (this.alertId === 'new') { @@ -17,6 +17,7 @@ function AlertCtrl($routeParams, $location, $sce, toastr, currentUser, Query, Ev this.queryResult = result; this.alert.options.column = this.alert.options.column || result.getColumnNames()[0]; }); + $scope.$applyAsync(); }; if (this.alertId === 'new') {