Skip to content

Commit

Permalink
fix: if tag already exists it shouldn't be added to the list
Browse files Browse the repository at this point in the history
  • Loading branch information
Antonella Sgarlatta committed Jun 9, 2021
1 parent b1a4eee commit ead8d5d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/assets/javascripts/views/tags/tags_view.ts
Original file line number Diff line number Diff line change
Expand Up @@ -345,6 +345,7 @@ class TagsViewCtrl extends PureViewCtrl<unknown, TagState> {
this.application.alertService!.alert(
"A tag with this name already exists."
);
this.undoCreateTag(newTag);
return;
}
const insertedTag = await this.application.insertItem(newTag);
Expand Down

0 comments on commit ead8d5d

Please sign in to comment.