From 209676d3cf1e24a37cd77c4d2193037772088752 Mon Sep 17 00:00:00 2001 From: brendanjbond Date: Thu, 3 Oct 2024 17:05:50 -0500 Subject: [PATCH] updates to ephermal properties not in state --- src/utils/formUtil/eachComponent.ts | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/utils/formUtil/eachComponent.ts b/src/utils/formUtil/eachComponent.ts index 156bb78d..7e2a0f3f 100644 --- a/src/utils/formUtil/eachComponent.ts +++ b/src/utils/formUtil/eachComponent.ts @@ -34,20 +34,17 @@ export function eachComponent( // Ensure we don't create infinite JSON structures. Object.defineProperty(component, 'parent', { enumerable: false, - writable: false, - configurable: true, + writable: true, value: JSON.parse(JSON.stringify(parent)) }); Object.defineProperty(component.parent, 'parent', { enumerable: false, - writable: false, - configurable: true, + writable: true, value: parent.parent }); Object.defineProperty(component.parent, 'path', { enumerable: false, - writable: false, - configurable: true, + writable: true, value: parent.path }); delete component.parent.components;