The result of the flow will be the result of the last node.
diff --git a/frontend/src/lib/components/flows/content/FlowInput.svelte b/frontend/src/lib/components/flows/content/FlowInput.svelte index 1c3ce16070..421d2e050b 100644 --- a/frontend/src/lib/components/flows/content/FlowInput.svelte +++ b/frontend/src/lib/components/flows/content/FlowInput.svelte @@ -4,7 +4,6 @@ import { getContext, tick, untrack } from 'svelte' import FlowCard from '../common/FlowCard.svelte' import type { FlowEditorContext } from '../types' - import Drawer from '$lib/components/common/drawer/Drawer.svelte' import JsonInputs from '$lib/components/JsonInputs.svelte' import { convert } from '@redocly/json-to-json-schema' import { sendUserToast } from '$lib/toast' @@ -27,7 +26,6 @@ Check } from 'lucide-svelte' import CaptureIcon from '$lib/components/triggers/CaptureIcon.svelte' - import FlowPreviewContent from '$lib/components/FlowPreviewContent.svelte' import FlowInputEditor from './FlowInputEditor.svelte' import { twMerge } from 'tailwind-merge' import CaptureButton from '$lib/components/triggers/CaptureButton.svelte' @@ -48,9 +46,10 @@ interface Props { noEditor: boolean disabled: boolean + onRunPreview?: () => void } - let { noEditor, disabled }: Props = $props() + let { noEditor, disabled, onRunPreview }: Props = $props() const { flowStore, @@ -76,7 +75,6 @@ let runDisabled: boolean = $state(false) let editableSchemaForm: EditableSchemaForm | undefined = $state(undefined) let savedPreviewArgs: Record