FIX: fixed (one of the) parts out of bounds errors
parent
24e3bedd12
commit
64b3281d7e
|
@ -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 (
|
||||
|
|
Loading…
Reference in New Issue