diff --git a/dashboardv2/public/js/views/tag/CreateTagLayoutView.js b/dashboardv2/public/js/views/tag/CreateTagLayoutView.js index 3107894..2930ac3 100644 --- a/dashboardv2/public/js/views/tag/CreateTagLayoutView.js +++ b/dashboardv2/public/js/views/tag/CreateTagLayoutView.js @@ -57,7 +57,7 @@ define(['require', */ initialize: function(options) { _.extend(this, _.pick(options, 'tagCollection', 'tag', 'termCollection', 'descriptionData')); - if (this.tagCollection && this.tagCollection.first().get('traitTypes')) { + if (this.tagCollection && this.tagCollection.length > 0 && this.tagCollection.first().get('traitTypes')) { this.description = this.tagCollection.first().get('traitTypes')[0].typeDescription; } else if (this.termCollection) { this.description = this.descriptionData;