We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 81a3af2 commit 8f7d917Copy full SHA for 8f7d917
ui/src/workflow/nodes/form-node/index.ts
@@ -4,6 +4,24 @@ class FormNode extends AppNode {
4
constructor(props: any) {
5
super(props, FormNodeVue)
6
}
7
+ get_node_field_list() {
8
+ const result = []
9
+ const fields = this.props.model.properties?.config?.fields || []
10
+ let otherFields = []
11
+ try {
12
+ otherFields = this.props.model.properties.node_data.form_field_list.map((item: any) => ({
13
+ label: typeof item.label == 'string' ? item.label : item.label.label,
14
+ value: item.field
15
+ }))
16
+ } catch (e) {}
17
+ result.push({
18
+ value: this.props.model.id,
19
+ label: this.props.model.properties.stepName,
20
+ type: this.props.model.type,
21
+ children: [...fields, ...otherFields]
22
+ })
23
+ return result
24
+ }
25
26
export default {
27
type: 'form-node',
0 commit comments