From 5f3cfb26cc5adcea02fad86249fd4f91745154bb Mon Sep 17 00:00:00 2001 From: Anang Yusman Date: Tue, 31 Mar 2026 09:02:28 +0800 Subject: [PATCH] fix drone again --- .drone.yml | 2 +- components/form/agent/agent-form.tsx | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/.drone.yml b/.drone.yml index 82f5253..25d7128 100644 --- a/.drone.yml +++ b/.drone.yml @@ -16,7 +16,7 @@ steps: branch: - main commands: - - rm -rf /opt/build/jaecoo-kelapa-gading + - rm -rf /opt/build/jaecoo-kelapagading - mkdir -p /opt/build - cd /opt/build - git clone http://38.47.180.165:3000/jaecoo/jaecoo-kelapagading.git diff --git a/components/form/agent/agent-form.tsx b/components/form/agent/agent-form.tsx index 19b415d..7a9a598 100644 --- a/components/form/agent/agent-form.tsx +++ b/components/form/agent/agent-form.tsx @@ -32,7 +32,6 @@ type AgentFormValues = { const agentTypes = ["After Sales", "Sales", "Spv", "Branch Manager"]; export default function AddAgentForm() { - // const [previewImg, setPreviewImg] = useState(null); const router = useRouter(); const [file, setFile] = useState(null); const [previewImg, setPreview] = useState(null); @@ -67,7 +66,6 @@ export default function AddAgentForm() { formData.append("job_title", data.job_title); formData.append("phone", data.phone); - // ✅ FIX UTAMA formData.append("agent_type", JSON.stringify(data.agent_type)); if (file) { @@ -142,7 +140,6 @@ export default function AddAgentForm() { )} /> - {/* No Telp */} - {/* BUTTON */}