From d683951c4947d8b361bc3fa7eaad86e0663842e2 Mon Sep 17 00:00:00 2001 From: "ajat91.sudrajat" Date: Fri, 4 Feb 2022 19:26:02 +0700 Subject: [PATCH 1/2] Bug Fixing --- src/component/ProductComponent.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/component/ProductComponent.js b/src/component/ProductComponent.js index 4a37738..3a3cc7c 100644 --- a/src/component/ProductComponent.js +++ b/src/component/ProductComponent.js @@ -228,9 +228,13 @@ export const ProductComponent = observer((props) => { store.product.filterSupplier = filterSupplier; store.product.filterSubCategory = filterSubCategories; modalLoader.setLoading(true); + store.authentication.userData.role === "Admin Partner" + ? await store.product.getData() + : await store.product.getData() await store.product.getData(); modalLoader.setLoading(false); store.product.visibleModalFilterProduct = false; + //store.product.page=1 }; const footerLayoutFilter = [ @@ -478,6 +482,7 @@ export const ProductComponent = observer((props) => { visible={store.product.visibleModalFilterProduct} title={"Filter"} footer={footerLayoutFilter} + onClick={store.product.page + 1} onCancel={async () => { // setFilterSupplier([]); // setFilterSubCategories([]); From 8ec940d618c317dcc34a3610c619e0d2677c589f Mon Sep 17 00:00:00 2001 From: "ajat91.sudrajat" Date: Fri, 4 Feb 2022 19:51:51 +0700 Subject: [PATCH 2/2] Bug Fixing --- src/component/ProductComponent.js | 8 +++--- src/pages/Product/Product.js | 1 + src/pages/Transaction/Product.js | 37 ++++++++++++++-------------- src/pages/Transaction/Transaction.js | 37 ++++++++++++++-------------- 4 files changed, 43 insertions(+), 40 deletions(-) diff --git a/src/component/ProductComponent.js b/src/component/ProductComponent.js index 3a3cc7c..b01aca2 100644 --- a/src/component/ProductComponent.js +++ b/src/component/ProductComponent.js @@ -228,9 +228,9 @@ export const ProductComponent = observer((props) => { store.product.filterSupplier = filterSupplier; store.product.filterSubCategory = filterSubCategories; modalLoader.setLoading(true); - store.authentication.userData.role === "Admin Partner" - ? await store.product.getData() - : await store.product.getData() + // store.authentication.userData.role === "Admin Partner" + // ? await store.product.getData() + // : await store.product.getData() await store.product.getData(); modalLoader.setLoading(false); store.product.visibleModalFilterProduct = false; @@ -482,7 +482,7 @@ export const ProductComponent = observer((props) => { visible={store.product.visibleModalFilterProduct} title={"Filter"} footer={footerLayoutFilter} - onClick={store.product.page + 1} + onCancel={async () => { // setFilterSupplier([]); // setFilterSubCategories([]); diff --git a/src/pages/Product/Product.js b/src/pages/Product/Product.js index 3cadd9c..1ff75cf 100644 --- a/src/pages/Product/Product.js +++ b/src/pages/Product/Product.js @@ -195,6 +195,7 @@ export const Product = observer(() => { , - , + // , ]} >
diff --git a/src/pages/Transaction/Transaction.js b/src/pages/Transaction/Transaction.js index 3a8ec96..69468dc 100644 --- a/src/pages/Transaction/Transaction.js +++ b/src/pages/Transaction/Transaction.js @@ -294,6 +294,7 @@ export const Transaction = observer(() => { style={{ backgroundColor: "#4e79e7", color: "#fff", + marginRight:10 }} onClick={() => { form @@ -310,24 +311,24 @@ export const Transaction = observer(() => { > Beli , - , + // , ]} >