diff --git a/packages/scenes/src/core/sceneGraph/utils.ts b/packages/scenes/src/core/sceneGraph/utils.ts index 9dc9cabb6..7ba98e708 100644 --- a/packages/scenes/src/core/sceneGraph/utils.ts +++ b/packages/scenes/src/core/sceneGraph/utils.ts @@ -45,6 +45,8 @@ export function cloneSceneObjectState( for (const child of propValue) { if (child instanceof SceneObjectBase) { newArray.push(child.clone()); + } else if (typeof child === 'object' && !Array.isArray(child)) { + newArray.push({ ...child }); } else { newArray.push(child); }