modify password api config

This commit is contained in:
chungyau97
2023-07-10 21:19:22 +08:00
parent f13c16569f
commit 9dd19178ff
+2 -4
View File
@@ -632,9 +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') { if (inputParam.type === 'file') {
continue
} else if (inputParam.type === 'file') {
obj = { obj = {
node: flowNode.data.label, node: flowNode.data.label,
label: inputParam.label, label: inputParam.label,
@@ -659,7 +657,7 @@ export const findAvailableConfigs = (reactFlowNodes: IReactFlowNode[]) => {
node: flowNode.data.label, node: flowNode.data.label,
label: inputParam.label, label: inputParam.label,
name: inputParam.name, name: inputParam.name,
type: inputParam.type type: inputParam.type === 'password' ? 'string' : inputParam.type
} }
} }
if (!configs.some((config) => JSON.stringify(config) === JSON.stringify(obj))) { if (!configs.some((config) => JSON.stringify(config) === JSON.stringify(obj))) {