From 49ee7f4caf6cfae36268ac929e8e6e90ff02a657 Mon Sep 17 00:00:00 2001 From: somebody Date: Sun, 4 Dec 2022 21:35:23 -0600 Subject: [PATCH] Prevent entry of empty genres --- static/koboldai.js | 1 + 1 file changed, 1 insertion(+) diff --git a/static/koboldai.js b/static/koboldai.js index 380d23b2..e5482c82 100644 --- a/static/koboldai.js +++ b/static/koboldai.js @@ -6553,6 +6553,7 @@ function imgGenRetry() { break; case "Enter": if (highlightIndex === -1) { + if (!genreInput.value.trim()) return; addGenre(genreInput.value); } else { genreSuggestionContainer.children[highlightIndex].click();