mirror of
https://github.com/ansible/awx.git
synced 2026-01-18 05:01:19 -03:30
Ensure variable exists before calling toString on it to fix js error thrown when creating grafana notification
This commit is contained in:
parent
4a35df9a1c
commit
94b5bb8cf9
@ -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') {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user