From 0b40c99ce9867268a3de0cddaf3c21393136dbec Mon Sep 17 00:00:00 2001 From: hanif salafi Date: Mon, 25 Aug 2025 15:13:16 +0700 Subject: [PATCH] update save approval --- components/form/content/image-detail-form.tsx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/components/form/content/image-detail-form.tsx b/components/form/content/image-detail-form.tsx index fae28623..8a269c12 100644 --- a/components/form/content/image-detail-form.tsx +++ b/components/form/content/image-detail-form.tsx @@ -1018,12 +1018,12 @@ export default function FormImageDetail() { console.log("Data Approval : ", data); setModalOpen(false); - // loading(); - // const response = await submitApproval(data); - // if (response?.error) { - // error(response.message); - // return false; - // } + loading(); + const response = await submitApproval(data); + if (response?.error) { + error(response.message); + return false; + } const dataReject = { listFiles: rejectedFiles,