diff --git a/apps/dokploy/components/dashboard/project/ai/step-one.tsx b/apps/dokploy/components/dashboard/project/ai/step-one.tsx index 0c80ec1d..109ad441 100644 --- a/apps/dokploy/components/dashboard/project/ai/step-one.tsx +++ b/apps/dokploy/components/dashboard/project/ai/step-one.tsx @@ -24,23 +24,12 @@ const examples = [ ]; export const StepOne = ({ nextStep, setTemplateInfo, templateInfo }: any) => { - const [userInput, setUserInput] = useState(templateInfo.userInput); - // Get servers from the API const { data: servers } = api.server.withSSHKey.useQuery(); - const handleNext = () => { - setTemplateInfo({ - ...templateInfo, - userInput, - }); - nextStep(); - }; - const handleExampleClick = (example: string) => { - setUserInput(example); + setTemplateInfo({ ...templateInfo, userInput: example }); }; - return (
@@ -51,8 +40,10 @@ export const StepOne = ({ nextStep, setTemplateInfo, templateInfo }: any) => {