Skip to content
Snippets Groups Projects
Commit e2bcfeaf authored by Paul Meurer's avatar Paul Meurer
Browse files

ignore sub-articles without lemmas

parent 0410c4c9
No related branches found
No related tags found
No related merge requests found
......@@ -52,9 +52,8 @@ function find_sub_articles(definition) {
sub_art_list = sub_art_list.concat(find_sub_articles(subdef))
})
let sub_articles = definition.elements.filter(el => el.type_ == 'sub_article')
let sub_articles = definition.elements.filter(el => el.type_ == 'sub_article' && el.lemmas)
sub_art_list = sub_art_list.concat(sub_articles)
return sub_art_list
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment