diff --git a/ui/src/app/workflows/components/submit-workflow-panel.tsx b/ui/src/app/workflows/components/submit-workflow-panel.tsx index 85306a0d3953..d79a3bb71fed 100644 --- a/ui/src/app/workflows/components/submit-workflow-panel.tsx +++ b/ui/src/app/workflows/components/submit-workflow-panel.tsx @@ -18,15 +18,14 @@ interface Props { } const workflowEntrypoint = ''; +const defaultTemplate: Template = { + name: workflowEntrypoint, + inputs: { + parameters: [] + } +}; export function SubmitWorkflowPanel(props: Props) { - const defaultTemplate: Template = { - name: workflowEntrypoint, - inputs: { - parameters: [] - } - }; - const [entrypoint, setEntrypoint] = useState(workflowEntrypoint); const [parameters, setParameters] = useState([]); const [workflowParameters, setWorkflowParameters] = useState(JSON.parse(JSON.stringify(props.workflowParameters)));