({ inputParam, newValue })
| 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 = { |
no test coverage detected