fix(frontend): fix use inputs flow preview (#4094)

* fix(frontend): Fix json editor wip

* fix(frontend): Fix 'Use input' in the test flow drawer
This commit is contained in:
Faton Ramadani
2024-07-17 14:52:21 +02:00
committed by GitHub
parent cdc7190d89
commit 7aa2189fec

View File

@@ -114,6 +114,7 @@
$: selectedJobStep !== undefined && onSelectedJobStepChange()
let inputLibraryDrawer: Drawer
let renderCount: number = 0
</script>
<CapturePayload bind:this={capturePayload} />
@@ -129,6 +130,7 @@
on:selected_args={(e) => {
$previewArgs = JSON.parse(JSON.stringify(e.detail))
inputLibraryDrawer?.closeDrawer()
renderCount++
}}
/>
</DrawerContent>
@@ -311,13 +313,15 @@
<div class="overflow-y-auto grow flex flex-col pr-4">
<div class="border-b">
<SchemaForm
noVariablePicker
compact
class="py-4 max-w-3xl"
schema={$flowStore.schema}
bind:args={$previewArgs}
/>
{#key renderCount}
<SchemaForm
noVariablePicker
compact
class="py-4 max-w-3xl"
schema={$flowStore.schema}
bind:args={$previewArgs}
/>
{/key}
</div>
<div class="pt-4 flex flex-col grow">
{#if jobId}