Skip to content
Snippets Groups Projects
Commit 8bfda061 authored by Klaus-Dieter Quibeldey-Cirkel's avatar Klaus-Dieter Quibeldey-Cirkel
Browse files

Merge branch '650-no-keywords-are-generated-for-the-topic-cloud' into 'staging'

Resolve "No keywords are generated for the topic cloud"

Closes #650

See merge request arsnova/frag.jetzt!621
parents 590b419b 921064ee
No related merge requests found
......@@ -69,7 +69,7 @@ export class TopicCloudAdminService {
}
const wantedLabels = config.wantedLabels[comment.language.toLowerCase()];
for (const keyword of source) {
if (wantedLabels && !keyword.dep.some(e => wantedLabels.includes(e))) {
if (wantedLabels && (!keyword.dep || !keyword.dep.some(e => wantedLabels.includes(e)))) {
continue;
}
let isProfanity = false;
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment