Skip to content

Commit

Permalink
Safegaurding alerts in case they come back undefined (#85108)
Browse files Browse the repository at this point in the history
  • Loading branch information
igoristic authored Dec 7, 2020
1 parent 2466dd6 commit 008c6a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion x-pack/plugins/monitoring/public/views/base_controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ export class MonitoringViewBaseController {
$scope.$apply(() => {
this._isDataInitialized = true; // render will replace loading screen with the react component
$scope.pageData = this.data = pageData.value; // update the view's data with the fetch result
$scope.alerts = this.alerts = alerts.value || {};
$scope.alerts = this.alerts = alerts && alerts.value ? alerts.value : {};
});
});
};
Expand Down

0 comments on commit 008c6a0

Please sign in to comment.