From 64b3281d7ed178290fff4ce294b434c0b739e994 Mon Sep 17 00:00:00 2001 From: Florian Brede Date: Sun, 23 May 2021 02:29:34 +0200 Subject: [PATCH] FIX: fixed (one of the) parts out of bounds errors --- src/CanExplorer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/CanExplorer.js b/src/CanExplorer.js index abc70d6..94d9198 100644 --- a/src/CanExplorer.js +++ b/src/CanExplorer.js @@ -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 (