Fix subworkflows not being exported properly

This commit is contained in:
Jože Fortun
2022-12-02 11:01:12 +01:00
parent 64acdc9446
commit 23bf377a53
@@ -50,7 +50,7 @@ export default {
.catch(this.toastErrorHandler(this.$t('notification:failed-fetch-triggers')))
// Get workflows, add related triggers
await this.$AutomationAPI.workflowList({ workflowID, disabled: 1 })
await this.$AutomationAPI.workflowList({ workflowID, disabled: 1, subWorkflow: 1 })
.then(({ set = [] }) => {
workflows = set.map(({ workflowID, handle, enabled, keepSessions, steps, paths, meta }) => {
return {