(params, inputs)
| 1342 | } |
| 1343 | |
| 1344 | export 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 | } |
no test coverage detected