Skip to content

Commit 1195815

Browse files
committed
check possible undefined
1 parent fb3a7a0 commit 1195815

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

resources/js/wayfinder.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,9 @@ export const queryParams = (options?: {
6060
});
6161

6262
for (const subKey in query[key]) {
63-
params.set(`${key}[${subKey}]`, getValue(query[key][subKey]));
63+
if (query[key][subKey] !== undefined) {
64+
params.set(`${key}[${subKey}]`, getValue(query[key][subKey]));
65+
}
6466
}
6567
} else {
6668
params.set(key, getValue(query[key]));

0 commit comments

Comments
 (0)