Skip to content

Commit

Permalink
Added $scope.$applyAsync() to change handler
Browse files Browse the repository at this point in the history
  • Loading branch information
ranbena committed Feb 27, 2019
1 parent b9e99cd commit dcf86c5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion client/app/pages/alert/index.js
Original file line number Diff line number Diff line change
@@ -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') {
Expand All @@ -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') {
Expand Down

0 comments on commit dcf86c5

Please sign in to comment.