From ead8d5dcf68fccd870691af20f6cc9d787e8fcd6 Mon Sep 17 00:00:00 2001 From: Antonella Sgarlatta Date: Wed, 9 Jun 2021 16:38:53 -0300 Subject: [PATCH] fix: if tag already exists it shouldn't be added to the list --- app/assets/javascripts/views/tags/tags_view.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/app/assets/javascripts/views/tags/tags_view.ts b/app/assets/javascripts/views/tags/tags_view.ts index d7ce1bbc8..b44f7b076 100644 --- a/app/assets/javascripts/views/tags/tags_view.ts +++ b/app/assets/javascripts/views/tags/tags_view.ts @@ -345,6 +345,7 @@ class TagsViewCtrl extends PureViewCtrl { this.application.alertService!.alert( "A tag with this name already exists." ); + this.undoCreateTag(newTag); return; } const insertedTag = await this.application.insertItem(newTag);