Skip to content

Commit

Permalink
EZS-1160: Content on the fly shows undefined when content type descri…
Browse files Browse the repository at this point in the history
…ption is empty
  • Loading branch information
dew326 committed Nov 30, 2016
1 parent 6fbb987 commit be6ff82
Showing 1 changed file with 3 additions and 1 deletion.
Expand Up @@ -67,7 +67,9 @@ YUI.add('cof-contenttypeselectorview', function (Y) {
if (contentTypeItemId === contentType.get('id')) {
var description = contentType.get('descriptions')[contentType.get('mainLanguageCode')];

contentTypeItem.setAttribute(ATTR_DESCRIPTION, description);
if (description) {
contentTypeItem.setAttribute(ATTR_DESCRIPTION, description);
}
}
});
});
Expand Down

0 comments on commit be6ff82

Please sign in to comment.