From 8f4331107daa01db2932b65e8bf9d5bea55242a5 Mon Sep 17 00:00:00 2001 From: scottkiener-at-safelite Date: Tue, 31 Mar 2026 13:50:35 -0400 Subject: [PATCH] Fix bug in querystring-helper Used the wrong value in nested loops --- src/helpers/querystring-helper.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/helpers/querystring-helper.js b/src/helpers/querystring-helper.js index 11dcdb48..b6f8ec3b 100644 --- a/src/helpers/querystring-helper.js +++ b/src/helpers/querystring-helper.js @@ -52,14 +52,14 @@ export function buildURLSearchParams(data) { } if (Array.isArray(value)) { value.forEach((arrayValue, index) => { - if (typeof value === 'object') { + if (typeof arrayValue === 'object') { Object.entries(arrayValue).forEach(([objectKey, objectValue]) => { if (objectValue != null) { params.append(`${key}[${index}].${objectKey}`, `${objectValue}`); } }); } else { - params.append(`${key}[${index}]`, `${value}`); + params.append(`${key}[${index}]`, `${arrayValue}`); } }); } else {