subcategory
This commit is contained in:
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user