Skip to content

Commit

Permalink
Add check for converted so .startsWith does not throw
Browse files Browse the repository at this point in the history
  • Loading branch information
nzdev authored and mikecp committed Nov 25, 2020
1 parent 3f776c3 commit 8d96c6e
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -135,7 +135,7 @@ function treeService($q, treeResource, iconHelper, notificationsService, eventsS
if (treeNode.iconIsClass === undefined || treeNode.iconIsClass) {
var converted = iconHelper.convertFromLegacyTreeNodeIcon(treeNode);
treeNode.cssClass = standardCssClass + " " + converted;
if (converted.startsWith('.')) {
if (converted && converted.startsWith('.')) {
//its legacy so add some width/height
treeNode.style = "height:16px;width:16px;";
}
Expand Down

0 comments on commit 8d96c6e

Please sign in to comment.