From aa9a4925b05c8c863c6a550f6d6e2d135eba2ae6 Mon Sep 17 00:00:00 2001 From: Akita Noek Date: Thu, 19 May 2016 10:03:42 -0400 Subject: [PATCH] Fix annoying warning message related to license info not loading appropriately Log it into the console though. This shouldn't be necessary after #1763 lands, but isn't a bad thing to be doing in general. --- awx/ui/client/src/bread-crumb/bread-crumb.directive.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/awx/ui/client/src/bread-crumb/bread-crumb.directive.js b/awx/ui/client/src/bread-crumb/bread-crumb.directive.js index a50262e533..bfb11e42cc 100644 --- a/awx/ui/client/src/bread-crumb/bread-crumb.directive.js +++ b/awx/ui/client/src/bread-crumb/bread-crumb.directive.js @@ -72,7 +72,10 @@ export default scope.activityStreamActive = (toState.name === 'activityStream') ? true : false; scope.showActivityStreamButton = (FeaturesService.featureEnabled('activity_streams') || toState.name === 'activityStream') ? true : false; var licenseInfo = FeaturesService.getLicenseInfo(); - scope.licenseType = licenseInfo.license_type; + scope.licenseType = licenseInfo ? licenseInfo.license_type : null; + if (!licenseInfo) { + console.warn("License info not loaded correctly"); + } }) .catch(function (response) { ProcessErrors(null, response.data, response.status, null, {