Fix adding duplicate tags via bulk menu

This commit is contained in:
Cohee 2023-11-09 23:41:26 +02:00
parent b2b4be5452
commit e6fcefd4d1
1 changed files with 2 additions and 1 deletions

View File

@ -10,7 +10,7 @@ import {
import { FILTER_TYPES, FilterHelper } from "./filters.js";
import { groupCandidatesFilter, selected_group } from "./group-chats.js";
import { uuidv4 } from "./utils.js";
import { onlyUnique, uuidv4 } from "./utils.js";
export {
tags,
@ -153,6 +153,7 @@ function addTagToMap(tagId, characterId = null) {
}
else {
tag_map[key].push(tagId);
tag_map[key] = tag_map[key].filter(onlyUnique);
}
}