Skip to content

Commit

Permalink
fix: default value not showing in workflow parameters (#798)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kholid060 committed Sep 21, 2022
1 parent 519799c commit 26b7619
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/params/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -179,9 +179,10 @@ async function addWorkflow(workflowId) {
const params = triggerBlock.data.parameters.map((param) => ({
...param,
value: '',
value: param.defaultValue,
inputType: param.type === 'string' ? 'text' : 'number',
}));
workflows.value.push({
params,
data: workflow,
Expand Down

0 comments on commit 26b7619

Please sign in to comment.