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

Function applyVisibleInputDefaults

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

Source from the content-addressed store, hash-verified

1342}
1343
1344export const applyVisibleInputDefaults = (params, inputs) => {
1345 const result = { ...(inputs ?? {}) }
1346 const evaluated = showHideInputs({ inputs: result }, null, params)
1347 for (let i = 0; i < evaluated.length; i += 1) {
1348 const param = evaluated[i]
1349 if (!param || param.default === undefined) continue
1350 if (param.display === false) continue
1351 if (result[param.name] !== undefined) continue
1352 result[param.name] = param.default
1353 }
1354 return result
1355}

Callers 2

onCustomDataChangeFunction · 0.90

Calls 1

showHideInputsFunction · 0.70

Tested by

no test coverage detected