modify options api config
This commit is contained in:
parent
a701c6ef12
commit
f13c16569f
|
|
@ -632,7 +632,7 @@ export const findAvailableConfigs = (reactFlowNodes: IReactFlowNode[]) => {
|
||||||
for (const flowNode of reactFlowNodes) {
|
for (const flowNode of reactFlowNodes) {
|
||||||
for (const inputParam of flowNode.data.inputParams) {
|
for (const inputParam of flowNode.data.inputParams) {
|
||||||
let obj: IOverrideConfig
|
let obj: IOverrideConfig
|
||||||
if (inputParam.type === 'password' || inputParam.type === 'options') {
|
if (inputParam.type === 'password') {
|
||||||
continue
|
continue
|
||||||
} else if (inputParam.type === 'file') {
|
} else if (inputParam.type === 'file') {
|
||||||
obj = {
|
obj = {
|
||||||
|
|
@ -641,6 +641,19 @@ export const findAvailableConfigs = (reactFlowNodes: IReactFlowNode[]) => {
|
||||||
name: 'files',
|
name: 'files',
|
||||||
type: inputParam.fileType ?? inputParam.type
|
type: inputParam.fileType ?? inputParam.type
|
||||||
}
|
}
|
||||||
|
} else if (inputParam.type === 'options') {
|
||||||
|
obj = {
|
||||||
|
node: flowNode.data.label,
|
||||||
|
label: inputParam.label,
|
||||||
|
name: inputParam.name,
|
||||||
|
type: inputParam.options
|
||||||
|
? inputParam.options
|
||||||
|
?.map((option) => {
|
||||||
|
return option.name
|
||||||
|
})
|
||||||
|
.join(', ')
|
||||||
|
: 'string'
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
obj = {
|
obj = {
|
||||||
node: flowNode.data.label,
|
node: flowNode.data.label,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue