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

Function handleDataChange

packages/ui/src/views/canvas/NodeInputHandler.jsx:227–237  ·  view source on GitHub ↗
({ inputParam, newValue })

Source from the content-addressed store, hash-verified

225 const [promptGeneratorDialogProps, setPromptGeneratorDialogProps] = useState({})
226
227 const handleDataChange = ({ inputParam, newValue }) => {
228 data.inputs[inputParam.name] = newValue
229 const allowedShowHideInputTypes = ['boolean', 'asyncOptions', 'asyncMultiOptions', 'options', 'multiOptions']
230 if (allowedShowHideInputTypes.includes(inputParam.type)) {
231 if (onCustomDataChange) {
232 onCustomDataChange({ nodeId: data.id, inputParam, newValue })
233 } else {
234 onNodeDataChange({ nodeId: data.id, inputParam, newValue })
235 }
236 }
237 }
238
239 const onInputHintDialogClicked = (hint) => {
240 const dialogProps = {

Callers 4

onConfirmAsyncOptionFunction · 0.70
NodeInputHandlerFunction · 0.70
NodeInputHandlerFunction · 0.50
renderInputFunction · 0.50

Calls 2

onNodeDataChangeFunction · 0.85
onCustomDataChangeFunction · 0.50

Tested by

no test coverage detected