mirror of
https://github.com/ansible/awx.git
synced 2026-03-06 19:21:06 -03:30
Ensure variable exists before calling toString on it to fix js error thrown when creating grafana notification
This commit is contained in:
@@ -199,7 +199,7 @@ export default ['Rest', 'Wait', 'NotificationsFormObject',
|
||||
$scope[i] = null;
|
||||
}
|
||||
else {
|
||||
$scope[i] = $scope[i].toString().split('\n');
|
||||
$scope[i] = $scope[i] ? $scope[i].toString().split('\n') : "";
|
||||
}
|
||||
}
|
||||
if (field.type === 'checkbox') {
|
||||
|
||||
Reference in New Issue
Block a user