Skip to content

Commit

Permalink
updates to ephermal properties not in state
Browse files Browse the repository at this point in the history
  • Loading branch information
brendanbond committed Oct 3, 2024
1 parent b52bd7c commit 209676d
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/utils/formUtil/eachComponent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 209676d

Please sign in to comment.