Skip to content

Commit db1ea86

Browse files
authored
fix: handle null serialization (#649)
Resolves #636
1 parent a05a393 commit db1ea86

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/serialize.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export const serializeConfig = (obj: unknown): string => {
1010
}
1111

1212
// Run recursively on objects and arrays
13-
if (typeof obj === 'object') {
13+
if (typeof obj === 'object' && obj !== null) {
1414
if (Array.isArray(obj)) {
1515
return `[${obj.map(serializeConfig).join(', ')}]`
1616
} else if (obj === null) {

0 commit comments

Comments
 (0)