]> git.scottworley.com Git - vopamoi/blobdiff - vopamoi.ts
Disallow empty-string as a tag name
[vopamoi] / vopamoi.ts
index a6f85f2dc53864577c98445de5b7606b80eb4ac7..6e511a5e67c6172cdb273bc78d8e2c3b1bce04d2 100644 (file)
@@ -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;
       }