diff --git a/ui/src/workflow/common/app-node.ts b/ui/src/workflow/common/app-node.ts index d8922318d..2f1a929a0 100644 --- a/ui/src/workflow/common/app-node.ts +++ b/ui/src/workflow/common/app-node.ts @@ -39,11 +39,14 @@ class AppNode extends HtmlResize.view { ) } - props.model.properties.config = nodeDict[props.model.type].properties.config + props.model.properties.config = this.getConfig(props) if (props.model.properties.height) { props.model.height = props.model.properties.height } } + getConfig(props: any) { + return nodeDict[props.model.type].properties.config + } getNodeName(nodes: Array, baseName: string) { let index = 0 let name = baseName diff --git a/ui/src/workflow/nodes/form-node/index.ts b/ui/src/workflow/nodes/form-node/index.ts index b7c2dbec9..dd11218d5 100644 --- a/ui/src/workflow/nodes/form-node/index.ts +++ b/ui/src/workflow/nodes/form-node/index.ts @@ -4,9 +4,12 @@ class FormNode extends AppNode { constructor(props: any) { super(props, FormNodeVue) } + getConfig(props: any) { + return props.model.properties.config + } } export default { type: 'form-node', model: AppNodeModel, - view: FormNode + view: FormNode, } diff --git a/ui/src/workflow/nodes/parameter-extraction-node/index.ts b/ui/src/workflow/nodes/parameter-extraction-node/index.ts index 41b707e82..b0b52576e 100644 --- a/ui/src/workflow/nodes/parameter-extraction-node/index.ts +++ b/ui/src/workflow/nodes/parameter-extraction-node/index.ts @@ -5,6 +5,9 @@ class ParameterExtractionNode extends AppNode { constructor(props: any) { super(props, ParameterExtractionNodeVue) } + getConfig(props: any) { + return props.model.properties.config + } } export default { diff --git a/ui/src/workflow/nodes/variable-aggregation-node/index.ts b/ui/src/workflow/nodes/variable-aggregation-node/index.ts index d7bb579c6..1f2c433de 100644 --- a/ui/src/workflow/nodes/variable-aggregation-node/index.ts +++ b/ui/src/workflow/nodes/variable-aggregation-node/index.ts @@ -2,14 +2,16 @@ import VariableAggregationNodeVue from './index.vue' import { AppNode, AppNodeModel } from '@/workflow/common/app-node' class VariableAggregationNode extends AppNode { - constructor(props: any) { - super(props, VariableAggregationNodeVue) - } + constructor(props: any) { + super(props, VariableAggregationNodeVue) + } + getConfig(props: any) { + return props.model.properties.config + } } - export default { - type: 'variable-aggregation-node', - model: AppNodeModel, - view: VariableAggregationNode, -} \ No newline at end of file + type: 'variable-aggregation-node', + model: AppNodeModel, + view: VariableAggregationNode, +} diff --git a/ui/src/workflow/nodes/variable-splitting/index.ts b/ui/src/workflow/nodes/variable-splitting/index.ts index 5e20ad653..4778480ab 100644 --- a/ui/src/workflow/nodes/variable-splitting/index.ts +++ b/ui/src/workflow/nodes/variable-splitting/index.ts @@ -5,6 +5,9 @@ class VariableSplittingNode extends AppNode { constructor(props: any) { super(props, VariableSplittingNodeVue) } + getConfig(props: any) { + return props.model.properties.config + } } export default {