Allow for selecting an empty tagFile to disable booru suggestions

This commit is contained in:
ctwrs
2022-12-23 21:34:00 +01:00
parent 16bf9d9a51
commit f11abe60c2
2 changed files with 2 additions and 2 deletions

View File

@@ -132,7 +132,7 @@ var translations = new Map();
async function loadTags(c) {
// Load main tags and aliases
if (allTags.length === 0) {
if (allTags.length === 0 && c.tagFile && c.tagFile !== "None") {
try {
allTags = await loadCSV(`${tagBasePath}/${c.tagFile}?${new Date().getTime()}`);
} catch (e) {