subcategory

This commit is contained in:
yonghyon
2024-07-04 15:23:46 +09:00
parent 5635a44801
commit 092a3ee06d
2 changed files with 5 additions and 3 deletions

View File

@@ -183,7 +183,7 @@ export const getMainCategoryShowDetail = (props) => (dispatch, getState) => {
let getSubCategoryKey = null;
let lastSubCategoryParams = {};
export const getSubCategory =
(params, pageNo = 1, key) =>
(params, pageNo = 1, key=null, clear=false) =>
(dispatch, getState) => {
const { lgCatCd, patnrIdList, tabType, filterType } = params;
let pageSize = params.pageSize || CATEGORY_DATA_MAX_RESULTS_LIMIT;
@@ -194,7 +194,9 @@ export const getSubCategory =
return;
}
lastSubCategoryParams = params;
dispatch(clearSubCategory());
if(clear){
dispatch(clearSubCategory());
}
}
let currentKey = key;
const onSuccess = (response) => {