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

@@ -866,7 +866,7 @@ const registerNetworkIpc = (mainWindow) => {
}
if (nextRequestName) {
const nextRequestIdx = folderRequests.findIndex((request) => request.name === nextRequestName);
if (nextRequestIdx > 0) {
if (nextRequestIdx >= 0) {
currentRequestIndex = nextRequestIdx;
} else {
console.error("Could not find request with name '" + nextRequestName + "'");