MCPcopy Create free account
hub / github.com/FlowiseAI/Flowise / getNodeDetail

Function getNodeDetail

packages/ui/src/views/vectorstore/VectorStoreDialog.jsx:342–359  ·  view source on GitHub ↗
(node)

Source from the content-addressed store, hash-verified

340 }
341
342 const getNodeDetail = (node) => {
343 const nodeDetails = []
344 const inputKeys = Object.keys(node.data.inputs)
345 for (let i = 0; i < node.data.inputParams.length; i += 1) {
346 if (inputKeys.includes(node.data.inputParams[i].name)) {
347 nodeDetails.push({
348 label: node.data.inputParams[i].label,
349 name: node.data.inputParams[i].name,
350 type: node.data.inputParams[i].type,
351 value:
352 node.data.inputParams[i].type === 'file'
353 ? getFileName(node.data.inputs[node.data.inputParams[i].name])
354 : node.data.inputs[node.data.inputParams[i].name] ?? ''
355 })
356 }
357 }
358 return nodeDetails
359 }
360
361 useEffect(() => {
362 if (getConfigApi.data) {

Callers 1

VectorStoreDialogFunction · 0.85

Calls 1

getFileNameFunction · 0.90

Tested by

no test coverage detected