fix: if tag already exists it shouldn't be added to the list
This commit is contained in:
@@ -345,6 +345,7 @@ class TagsViewCtrl extends PureViewCtrl<unknown, TagState> {
|
|||||||
this.application.alertService!.alert(
|
this.application.alertService!.alert(
|
||||||
"A tag with this name already exists."
|
"A tag with this name already exists."
|
||||||
);
|
);
|
||||||
|
this.undoCreateTag(newTag);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
const insertedTag = await this.application.insertItem(newTag);
|
const insertedTag = await this.application.insertItem(newTag);
|
||||||
|
|||||||
Reference in New Issue
Block a user