Skip to content

Commit b8bd111

Browse files
fix: check condition is value is object
1 parent 3e1e437 commit b8bd111

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/treaty2/index.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,13 @@ const createProxy = (
196196
continue
197197
}
198198

199-
append(key, JSON.stringify(value))
199+
if (typeof value === 'object') {
200+
append(key, JSON.stringify(value))
201+
continue
202+
}
203+
204+
205+
append(key, `${value}`)
200206
}
201207
}
202208

0 commit comments

Comments
 (0)