Filter default tags (probably), update name

This commit is contained in:
BlipRanger
2023-06-28 00:43:45 -04:00
parent 2b5a028af4
commit 762684ffea
2 changed files with 5 additions and 4 deletions

View File

@@ -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