Safegaurding alerts in case they come back undefined (#85108)
This commit is contained in:
parent
2466dd634a
commit
008c6a0e19
1 changed files with 1 additions and 1 deletions
|
@ -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 : {};
|
||||
});
|
||||
});
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue