FIX: fixed (one of the) parts out of bounds errors

main
Florian Brede 2021-05-23 02:29:34 +02:00 committed by Cameron Clough
parent 24e3bedd12
commit 64b3281d7e
No known key found for this signature in database
GPG Key ID: BFB3B74B026ED43F
1 changed files with 1 additions and 1 deletions

View File

@ -158,7 +158,7 @@ export default class CanExplorer extends Component {
this.setState({
logUrls,
route,
currentParts: [0, 2],
currentParts: [0, Math.min(logUrls.length - 1, PART_SEGMENT_LENGTH - 1)],
currentPart: 0
}, this.initCanData);
} else if (