Fix mutation of config after SetContainerList
This commit is contained in:
parent
c9b5ae2f19
commit
0d761e6a41
1 changed files with 1 additions and 1 deletions
|
@ -121,7 +121,7 @@ function AddNewContainerToParent(
|
|||
throw new Error(`[AddContainer] Object type not found among default config. Found: ${type}`);
|
||||
}
|
||||
|
||||
const containerConfig = Object.assign(defaultConfig, availableContainer);
|
||||
const containerConfig = Object.assign(structuredClone(defaultConfig), availableContainer);
|
||||
|
||||
// Default margin
|
||||
const left: number = containerConfig.Margin?.left ?? 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue