Skip to content

Commit b03f8ab

Browse files
authored
fix: correct default value for last found index in ProblemProcessor (#1475) (#1484)
1 parent 7ff5799 commit b03f8ab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

client/src/components/logViewer/ProblemProcessor.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ export class ProblemProcessor {
317317
const unclaimedLocations = [];
318318
locations.forEach((location) => {
319319
const problemNumber = location.problemNumber;
320-
const lastFoundIndex = lastIndexMap.get(problemNumber) ?? 0;
320+
const lastFoundIndex = lastIndexMap.get(problemNumber) ?? -1;
321321
let currentIndex = (lastFoundIndex + 1) % rawProblems.length;
322322
let foundIndex = undefined;
323323
let count = 0;

0 commit comments

Comments
 (0)