Store workflow definitions as table rows and drop YAML
This commit is contained in:
@@ -228,7 +228,7 @@ struct WorkflowEditor: View {
|
||||
return
|
||||
}
|
||||
do {
|
||||
let def = try await store.api.client.getWorkflow(path: .init(name: original), headers: .init(accept: [.init(contentType: .json)])).ok.body.json
|
||||
let def = try await store.api.client.getWorkflow(path: .init(name: original)).ok.body.json
|
||||
name = original
|
||||
description = def.description ?? ""
|
||||
root = StepNode(kind: .order, children: def.steps.map { StepNode($0) })
|
||||
|
||||
Reference in New Issue
Block a user