mvahowe / proskomma-js

A JS Implementation of the Proskomma Scripture Processing Model
MIT License
11 stars 8 forks source link

don't return empty verses array from cvIndex type #159

Open MrGrinst opened 1 year ago

MrGrinst commented 1 year ago

In testing I found that querying verses on cvIndex was returning an empty verse array as the first item. In other places in the codebase, the result of chapterVerseIndex() is filtered down to items with length > 0, so I applied that same logic to cvIndex.verses.