You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@brooklyn.apache.org by he...@apache.org on 2019/11/19 12:16:59 UTC

[brooklyn-ui] branch master updated: fix var typo

This is an automated email from the ASF dual-hosted git repository.

heneveld pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/brooklyn-ui.git


The following commit(s) were added to refs/heads/master by this push:
     new fb95a1c  fix var typo
fb95a1c is described below

commit fb95a1c615d181e76e003f0c75876ba9c7a79c44
Author: Alex Heneveld <al...@cloudsoftcorp.com>
AuthorDate: Tue Nov 19 12:15:50 2019 +0000

    fix var typo
---
 ui-modules/utils/icon-generator/icon-generator.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/ui-modules/utils/icon-generator/icon-generator.js b/ui-modules/utils/icon-generator/icon-generator.js
index 4839d88..0a20e94 100644
--- a/ui-modules/utils/icon-generator/icon-generator.js
+++ b/ui-modules/utils/icon-generator/icon-generator.js
@@ -141,9 +141,9 @@ function IconService($q, $http, iconGenerator, $log, cache) {
                 return deferred.promise;
             }
             if (entityOrTypeId.catalogItemId) {
-                id = entity.catalogItemId;
+                id = entityOrTypeId.catalogItemId;
             } else if (entityOrTypeId.symbolicName) {
-                id = entity.symbolicName;
+                id = entityOrTypeId.symbolicName;
             } else if (entityOrTypeId.type) {
                 let entity = entityOrTypeId;
                 id = entity.type;