feat(autogpt_builder) Remove submit button (#7353)

remove submit button
pull/7354/head
Aarushi 2024-07-09 15:23:36 +01:00 committed by GitHub
parent d9c9b22886
commit b30eaf653a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 0 additions and 9 deletions

View File

@ -392,14 +392,6 @@ const CustomNode: FC<NodeProps<CustomNodeData>> = ({ data, id }) => {
return Object.values(newErrors).every((error) => error === null);
};
const handleSubmit = () => {
if (validateInputs()) {
console.log("Valid data:", data.hardcodedValues);
} else {
console.log("Invalid data:", errors);
}
};
return (
<div className={`custom-node dark-theme ${data.status === 'RUNNING' ? 'running' : data.status === 'COMPLETED' ? 'completed' : ''}`}>
<div className="node-header">
@ -445,7 +437,6 @@ const CustomNode: FC<NodeProps<CustomNodeData>> = ({ data, id }) => {
</p>
</div>
)}
<Button onClick={handleSubmit}>Submit</Button>
<ModalComponent
isOpen={isModalOpen}
onClose={() => setIsModalOpen(false)}