Pages Config
This commit is contained in:
@@ -30,7 +30,7 @@ export const SupplierComponent = observer((props) => {
|
||||
const init = async () => {
|
||||
try {
|
||||
setIsLoading(true);
|
||||
await store.product.getDataSubCategories();
|
||||
await store.supplier.getData();
|
||||
setIsLoading(false);
|
||||
} catch (e) {
|
||||
setIsLoading(false);
|
||||
@@ -90,7 +90,7 @@ export const SupplierComponent = observer((props) => {
|
||||
const deleteData = async (id) => {
|
||||
try {
|
||||
console.log(id);
|
||||
await store.product.delete(id);
|
||||
await store.supplier.delete(id);
|
||||
message.success("Data Berhasil Dihapus");
|
||||
history.push(LINKS.PRODUCT);
|
||||
} catch (err) {
|
||||
|
||||
Reference in New Issue
Block a user