Skip to content

Commit b77a180

Browse files
committed
feat: enhance jsonInput method in DFlow view to handle multiple value types
1 parent 8ec2d33 commit b77a180

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/components/d-flow/DFlow.view.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,13 @@ export class NodeParameterView {
329329

330330
jsonInput(): NodeParameterInput {
331331
return <NodeParameterInput>{
332-
value: this._value instanceof NodeFunctionView ? this._value.jsonInput() : this._value,
332+
value: this._value instanceof NodeFunctionView ? {
333+
functionValue: this._value.jsonInput()
334+
} : this._value?.__typename === "ReferenceValue" ? {
335+
referenceValue: this._value as ReferenceValue
336+
} : {
337+
literalValue: this._value as LiteralValue
338+
},
333339
runtimeParameterDefinitionId: this.runtimeParameter?.id
334340
}
335341
}

0 commit comments

Comments
 (0)