mirror of
https://github.com/ansible/awx.git
synced 2026-05-09 02:17:37 -02: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;
|
$scope[i] = null;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$scope[i] = $scope[i].toString().split('\n');
|
$scope[i] = $scope[i] ? $scope[i].toString().split('\n') : "";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (field.type === 'checkbox') {
|
if (field.type === 'checkbox') {
|
||||||
|
|||||||
Reference in New Issue
Block a user