fix sweep unTag with an array, fixes #1009
This commit is contained in:
1 parent
75a5b5e4de
commit
7a829e015b
2 files changed
+20
-1
No files matched your search
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user