Skip to content

Commit f777c43

Browse files
committed
Add early continue
1 parent 809db52 commit f777c43

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/lib/serialize.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,11 @@ const nestedUpdateUrlSearchParams = (
4343
}
4444

4545
if (Array.isArray(value)) {
46-
if (value.length === 0) searchParams.set(name, '')
46+
if (value.length === 0) {
47+
searchParams.set(name, '')
48+
continue
49+
}
50+
4751
if (value.length === 1 && value[0] === '') {
4852
throw new UnserializableParamError(
4953
name,

0 commit comments

Comments
 (0)