From eb0c8f389bc72b924eb5fb77a06332f8b07ff730 Mon Sep 17 00:00:00 2001 From: John Mitchell Date: Fri, 29 Apr 2016 10:11:00 -0400 Subject: [PATCH] fix saving of new jts error --- .../src/job-templates/add/job-templates-add.controller.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/awx/ui/client/src/job-templates/add/job-templates-add.controller.js b/awx/ui/client/src/job-templates/add/job-templates-add.controller.js index 44879c05a5..462033e768 100644 --- a/awx/ui/client/src/job-templates/add/job-templates-add.controller.js +++ b/awx/ui/client/src/job-templates/add/job-templates-add.controller.js @@ -360,7 +360,7 @@ }); currentLabels.then(function (current) { - var labelsToAdd = $scope.labels + var labelsToAdd = ($scope.labels || []) .map(val => val.value); var labelsToDisassociate = current .filter(val => labelsToAdd