diff options
Diffstat (limited to 'src/lib')
| -rw-r--r-- | src/lib/pengajuan-tempo/component/Referensi.jsx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/lib/pengajuan-tempo/component/Referensi.jsx b/src/lib/pengajuan-tempo/component/Referensi.jsx index b8c2f7eb..24f44728 100644 --- a/src/lib/pengajuan-tempo/component/Referensi.jsx +++ b/src/lib/pengajuan-tempo/component/Referensi.jsx @@ -84,6 +84,8 @@ const Referensi = ({ chekValid, buttonSubmitClick, data }) => { }; const handleDeleteSupplier = (index) => { + console.log('index', index); + const updatedData = supplierData.filter((_, i) => i !== index); setSupplierData(updatedData); updateFormSupplier(updatedData); // Update store atau state terkait @@ -313,10 +315,10 @@ const Referensi = ({ chekValid, buttonSubmitClick, data }) => { onChange={handleNewSupplierChange} placeholder='limit kredit' /> - <Trash2Icon + {/* <Trash2Icon size={18} onClick={() => handleDeleteSupplier(index)} - /> + /> */} </td> </tr> </tbody> |
