diff --git a/public/index.html b/public/index.html index a4554639d..8f91fccdb 100644 --- a/public/index.html +++ b/public/index.html @@ -2269,8 +2269,8 @@ Show avatar filenames - - Show Card Tags + + Import Card Tags diff --git a/public/scripts/tags.js b/public/scripts/tags.js index 508faf2b6..0a7e4d559 100644 --- a/public/scripts/tags.js +++ b/public/scripts/tags.js @@ -203,8 +203,9 @@ function selectTag(event, ui, listSelector) { } function importTags(imported_char) { - - for (let tagName of imported_char.data.tags) { + //Ignore the tags ROOT and TAVERN + let imported_tags = imported_char.tags.filter(t => t !== "ROOT" && t !== "TAVERN"); + for (let tagName of imported_tags) { let tag = tags.find(t => t.name === tagName); // create new tag if it doesn't exist