mirror of
https://gitlab.com/walljm/dynamicbible.git
synced 2025-07-22 23:09:49 -04:00
fix: Clamp the end verse to actual chapter size
This commit is contained in:
parent
e2a91055cb
commit
08e8e9f86e
@ -535,7 +535,7 @@ export class AppService extends createStateService(reducer, initialState) {
|
||||
|
||||
// get the verses requested.
|
||||
const tvs = chapters[j].vss.length;
|
||||
if (end === 0) {
|
||||
if (end === 0 || end > tvs) {
|
||||
end = tvs;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user