fix structuredclone

This commit is contained in:
kwaroran
2024-10-25 18:11:00 +09:00
parent b3fddb814e
commit 0f6246bef6
28 changed files with 114 additions and 104 deletions

View File

@@ -253,14 +253,14 @@
{#if subMenu === 0}
{#each builtComponentTrees as component, i}
<button class="p-2 border border-black rounded" onclick={() => {
addContainerToTree(structuredClone(component), selectedContatiner)
addContainerToTree(safeStructuredClone(component), selectedContatiner)
renderMainTree(tree)
}}>{component.type}</button>
{/each}
{:else if subMenu === 1}
{#each builtContainerTrees as container, i}
<button class="p-2 border border-black rounded" onclick={() => {
addContainerToTree(structuredClone(container), selectedContatiner)
addContainerToTree(safeStructuredClone(container), selectedContatiner)
renderMainTree(tree)
}}>{container.type}</button>
{/each}