diff --git a/src/pages/master/brandDevice/component/ListBrandDevice.jsx b/src/pages/master/brandDevice/component/ListBrandDevice.jsx index b21df9e..4128dfb 100644 --- a/src/pages/master/brandDevice/component/ListBrandDevice.jsx +++ b/src/pages/master/brandDevice/component/ListBrandDevice.jsx @@ -157,12 +157,12 @@ const ListBrandDevice = memo(function ListBrandDevice(props) { icon: 'question', title: 'Konfirmasi', message: 'Apakah anda yakin hapus data "' + param.brand_name + '" ?', - onConfirm: () => handleDelete(param.brand_id), + onConfirm: () => handleDelete(param.brand_id, param.brand_name), onCancel: () => {}, }); }; - const handleDelete = async (brand_id) => { + const handleDelete = async (brand_id, brand_name) => { try { const response = await deleteBrand(brand_id); @@ -170,7 +170,7 @@ const ListBrandDevice = memo(function ListBrandDevice(props) { NotifOk({ icon: 'success', title: 'Berhasil', - message: response.message || 'Data Brand Device berhasil dihapus.', + message: `Brand ${brand_name} deleted successfully.`, }); doFilter(); // Refresh data } else { @@ -278,4 +278,4 @@ const ListBrandDevice = memo(function ListBrandDevice(props) { ); }); -export default ListBrandDevice; \ No newline at end of file +export default ListBrandDevice;