mirror of
https://github.com/Significant-Gravitas/AutoGPT.git
synced 2026-04-08 03:00:28 -04:00
fixed input issue
This commit is contained in:
@@ -157,11 +157,13 @@ const CustomNode: FC<NodeProps<CustomNodeData>> = ({ data, id }) => {
|
||||
return <div className="connected-input">Connected</div>;
|
||||
}
|
||||
|
||||
const renderClickableInput = (displayValue: string) => (
|
||||
<div className="clickable-input" onClick={() => handleInputClick(fullKey)}>
|
||||
{displayValue}
|
||||
</div>
|
||||
);
|
||||
const renderClickableInput = (displayValue: unknown): JSX.Element => (
|
||||
<div className="clickable-input" onClick={() => handleInputClick(fullKey)}>
|
||||
{typeof displayValue === 'string' || typeof displayValue === 'number' || typeof displayValue === 'boolean'
|
||||
? String(displayValue)
|
||||
: JSON.stringify(displayValue)}
|
||||
</div>
|
||||
);
|
||||
|
||||
if (schema.type === 'object' && schema.properties) {
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user