mirror of
https://github.com/usebruno/bruno.git
synced 2025-08-14 09:28:54 +02:00
Fixes for getNextRequest in UI
This commit is contained in:
@ -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 + "'");
|
||||
|
Reference in New Issue
Block a user