Fixes for getNextRequest in UI

This commit is contained in:
Brian Dentino
2023-10-20 12:36:05 -04:00
committed by mj-h
parent 4a1d45f458
commit d76253ea04
3 changed files with 7 additions and 7 deletions

View File

@ -373,7 +373,7 @@ const handler = async function (argv) {
const nextRequestName = result?.nextRequestName;
if (nextRequestName) {
const nextRequestIdx = bruJsons.findIndex((iter) => iter.bruJson.name === nextRequestName);
if (nextRequestIdx > 0) {
if (nextRequestIdx >= 0) {
currentRequestIndex = nextRequestIdx;
} else {
console.error("Could not find request with name '" + nextRequestName + "'");