fix sweep unTag with an array, fixes #1009

This commit is contained in:
dualfroz committed 2026-10-14 19:36:25 +02:00
1 parent 75a5b5e4de
commit 7a829e015b
2 files changed
+20 -1

No files matched your search

+2 -1
View File
@@ -47,7 +47,8 @@ const tagger = function (list, document, world) {
}
}
if (todo.unTag !== undefined) {
unTag(terms, todo.unTag, model.one.tagSet, reason)
const tags = Array.isArray(todo.unTag) ? todo.unTag : [todo.unTag]
tags.forEach(tag => unTag(terms, tag, model.one.tagSet, reason))
}
// allow setting chunks, too
if (todo.chunk) {