This commit is contained in:
Simon Cambier
2023-08-22 07:52:03 +02:00
parent 9eeb8db841
commit a3ae1d237c

View File

@@ -30,6 +30,8 @@ export class Query {
if (!Array.isArray(parsed.exclude.text)) { if (!Array.isArray(parsed.exclude.text)) {
parsed.exclude.text = [parsed.exclude.text] parsed.exclude.text = [parsed.exclude.text]
} }
// Remove empty excluded strings
parsed.exclude.text = parsed.exclude.text.filter(o => o.length)
// Make sure that all fields are string[] // Make sure that all fields are string[]
for (const k of keywords) { for (const k of keywords) {