From 320bf21347fc7437d8d35e860c7c4f0902e45a6d Mon Sep 17 00:00:00 2001 From: Andrej Date: Mon, 25 Mar 2024 10:52:01 +0100 Subject: [PATCH] Fix last tag deletion [SCI-10505] --- app/assets/javascripts/my_modules.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(),