MCPcopy Index your code
hub / github.com/FlowiseAI/Flowise / _inputsWithDeclaredDefaults

Function _inputsWithDeclaredDefaults

packages/ui/src/utils/genericHelper.js:1292–1302  ·  view source on GitHub ↗
(params, inputs)

Source from the content-addressed store, hash-verified

1290}
1291
1292const _inputsWithDeclaredDefaults = (params, inputs) => {
1293 const merged = { ...(inputs ?? {}) }
1294 for (let i = 0; i < params.length; i += 1) {
1295 const param = params[i]
1296 if (!param || param.default === undefined) continue
1297 if (merged[param.name] === undefined) {
1298 merged[param.name] = param.default
1299 }
1300 }
1301 return merged
1302}
1303
1304export const showHideInputs = (nodeData, inputType, overrideParams, arrayIndex) => {
1305 const params = overrideParams ?? nodeData[inputType] ?? []

Callers 1

showHideInputsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected