From acee071ea98505b42918f4d7cdc15252ae78f705 Mon Sep 17 00:00:00 2001
From: it-fixcomart <it@fixcomart.co.id>
Date: Tue, 22 Oct 2024 15:28:40 +0700
Subject: <iman> update fix dokumen

---
 src/lib/pengajuan-tempo/component/PengajuanTempo.jsx | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

(limited to 'src/lib/pengajuan-tempo/component/PengajuanTempo.jsx')

diff --git a/src/lib/pengajuan-tempo/component/PengajuanTempo.jsx b/src/lib/pengajuan-tempo/component/PengajuanTempo.jsx
index 238c5e4e..e6424e51 100644
--- a/src/lib/pengajuan-tempo/component/PengajuanTempo.jsx
+++ b/src/lib/pengajuan-tempo/component/PengajuanTempo.jsx
@@ -50,7 +50,6 @@ const PengajuanTempo = () => {
     <Pengiriman chekValid={notValid} buttonSubmitClick={buttonSubmitClick} />,
     <Referensi chekValid={notValid} buttonSubmitClick={buttonSubmitClick} />,
     <Dokumen chekValid={notValid} buttonSubmitClick={buttonSubmitClick} />,
-    <div>Dokumen</div>,
     <div>Konfirmasi</div>,
   ];
   const stepDivsError = [
@@ -108,6 +107,12 @@ const PengajuanTempo = () => {
       // const formData = JSON.parse(cachedData);
       if (currentStep == 3) {
         stepDivsUpdateForm[currentStep](cachedData);
+      } else if (currentStep == 4) {
+        // Memanggil updateFormDokumen dengan parameter yang benar
+        Object.keys(cachedData).forEach((key) => {
+          const { name, format, base64 } = cachedData[key];
+          stepDivsUpdateForm[currentStep](key, name, format, base64);
+        });
       } else {
         Object.keys(cachedData).forEach((key) => {
           stepDivsUpdateForm[currentStep](key, cachedData[key]);
-- 
cgit v1.2.3

