From b033319fff0adf60c29e071cccf1c13c4f4c8f36 Mon Sep 17 00:00:00 2001 From: Michael Abashian Date: Mon, 5 Jun 2017 15:41:42 -0400 Subject: [PATCH] Fixed bug with REVERT button display --- awx/ui/client/src/job-submission/job-submission.controller.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/awx/ui/client/src/job-submission/job-submission.controller.js b/awx/ui/client/src/job-submission/job-submission.controller.js index 11655cabbc..e53d697935 100644 --- a/awx/ui/client/src/job-submission/job-submission.controller.js +++ b/awx/ui/client/src/job-submission/job-submission.controller.js @@ -474,7 +474,7 @@ export default let machineCredentialMatches = true; let extraCredentialsMatch = true; - if($scope.defaults.credential) { + if($scope.defaults.credential && $scope.defaults.credential.id) { if(!$scope.selected_credentials.machine || ($scope.selected_credentials.machine && $scope.selected_credentials.machine.id !== $scope.defaults.credential.id)) { machineCredentialMatches = false; }