diff --git a/src/serialize.ts b/src/serialize.ts index 468b1546..de125af3 100644 --- a/src/serialize.ts +++ b/src/serialize.ts @@ -10,7 +10,7 @@ export const serializeConfig = (obj: any): string => { } // Run recursively on objects and arrays - if (typeof obj === 'object') { + if (typeof obj === 'object' && obj !== null) { if (Array.isArray(obj)) { return `[${obj.map(serializeConfig).join(', ')}]` } else {