diff --git a/front-end/src/components/CustomNode/NodeConfig.js b/front-end/src/components/CustomNode/NodeConfig.js index 992d47f..67c8f94 100644 --- a/front-end/src/components/CustomNode/NodeConfig.js +++ b/front-end/src/components/CustomNode/NodeConfig.js @@ -251,20 +251,15 @@ function SimpleInput(props) { }, [value, keyName, onChange, type]); - if (props.type === "textarea") { - return ( - - ) - - } else { - return ( - - ) - } + const extraProps = props.type === "textarea" + ? {as: "textarea", rows: props.rows || 7} + : {type: props.type}; + return ( + + ) }