{
+ dispatch('focus')
+ }}
+ on:blur={(e) => {
+ dispatch('blur')
+ }}
+ code={JSON.stringify(v, null, 2)}
+ bind:value={v}
+ />
{:else if itemsType?.type === 'object' && itemsType?.properties}
{:else if inputCat == 'resource-object' && format.split('-').length > 1 && format
diff --git a/frontend/src/lib/components/ModulePreviewForm.svelte b/frontend/src/lib/components/ModulePreviewForm.svelte
index d0118779bf..ba623d7d2e 100644
--- a/frontend/src/lib/components/ModulePreviewForm.svelte
+++ b/frontend/src/lib/components/ModulePreviewForm.svelte
@@ -50,7 +50,9 @@
}
function plugIt(argName: string) {
- args[argName] = evalValue(argName, mod, testStepStore, pickableProperties, true)
+ args[argName] = structuredClone(
+ evalValue(argName, mod, testStepStore, pickableProperties, true)
+ )
try {
editor?.[argName]?.setCode(JSON.stringify(args[argName], null, 4))
} catch {
diff --git a/frontend/src/lib/components/ObjectResourceInput.svelte b/frontend/src/lib/components/ObjectResourceInput.svelte
index 55fadaf5cd..170124874c 100644
--- a/frontend/src/lib/components/ObjectResourceInput.svelte
+++ b/frontend/src/lib/components/ObjectResourceInput.svelte
@@ -1,6 +1,8 @@