Pages Config

This commit is contained in:
2021-12-14 18:52:42 +07:00
parent f5903db03e
commit 558ca2a098
18 changed files with 421 additions and 342 deletions

View File

@@ -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) {