From 9898989be4a368599e027420e7069b63d16d4e17 Mon Sep 17 00:00:00 2001 From: wuiyang Date: Sat, 24 May 2025 03:19:29 +0800 Subject: [PATCH] fix: handle null serialization Resolves #636 --- src/serialize.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {