From: Scott Worley Date: Thu, 27 Jan 2022 20:13:49 +0000 (-0800) Subject: Disallow empty-string as a tag name X-Git-Url: http://git.scottworley.com/vopamoi/commitdiff_plain/f366a8213c2d36700fbf7d384ac93d55f0934f72?ds=sidebyside;hp=09cd65ad6907a157c1907c6b30325e31128e0267 Disallow empty-string as a tag name --- diff --git a/vopamoi.ts b/vopamoi.ts index a6f85f2..6e511a5 100644 --- a/vopamoi.ts +++ b/vopamoi.ts @@ -284,7 +284,7 @@ function BrowserUI() { input.removeEventListener("blur", this.completeTagEdit); task.removeChild(input); task.focus(); - if (!Model.hasTag(task, newTagName)) { + if (newTagName && !Model.hasTag(task, newTagName)) { ui.addTag(task.getAttribute("data-created")!, newTagName); lastTagNameEntered = newTagName; }