From 882746c1c345e3e432dc8f63cb73f44697d81ede Mon Sep 17 00:00:00 2001 From: Garth Poitras <411908+gpoitch@users.noreply.github.com> Date: Thu, 25 Sep 2025 11:34:24 -0400 Subject: [PATCH] Fix props output --- src/utils.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/utils.ts b/src/utils.ts index f7ba228..8d42f49 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -49,7 +49,11 @@ export function cloneRecursive(object: T) { objectCopy[key] = value.slice(); for (let j = 0; j < value.length; j++) { - objectCopy[key][j] = cloneRecursive(value[j]); + const item = value[j]; + objectCopy[key][j] = + item && typeof item === "object" + ? cloneRecursive(item) + : item; } } else { objectCopy[key] = cloneRecursive(value);