Skip to content

Commit

Permalink
fix: show default value in prompt (AutomaApp#929)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kholid060 committed Feb 14, 2023
1 parent cf19d28 commit 4c55bba
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/content/commandPalette/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -290,8 +290,13 @@ function executeWorkflow(workflow) {
keys.add(param.name);
});
const parameters = cloneDeep(triggerData.parameters).map((item) => ({
...item,
value: item.defaultValue,
}));
paramsState.workflow = workflow;
paramsState.items = cloneDeep(triggerData.parameters);
paramsState.items = parameters;
paramsState.active = true;
} else {
Expand Down

0 comments on commit 4c55bba

Please sign in to comment.