diff --git a/app/assets/javascripts/my_modules.js b/app/assets/javascripts/my_modules.js index cd5abc8b6..bdb85372f 100644 --- a/app/assets/javascripts/my_modules.js +++ b/app/assets/javascripts/my_modules.js @@ -140,7 +140,7 @@ HelperModule.flashAlertMsg(I18n.t('general.no_permissions'), 'danger'); } }); - } else { + } else if (lastTag.length > 0) { newTag = { tag: { name: lastTag.find('.tag-label').html(),