Authored by JohnTai

fix bugs on device. reviewed by盖建秋

... ... @@ -231,8 +231,8 @@ export function clearHistory(selectedProducts) {
let {productList, selectedProductList} = browse;
console.log('000')
dispatch(deleteSelectedProducts(selectedProducts));
// dispatch(historyClearSuccess({productList, selectedProductList}));
ReactNative.NativeModules.YH_RecorderHelper.setRightClearButtonVisiblity(false);
let show = productList.size > 0;
ReactNative.NativeModules.YH_RecorderHelper.setRightClearButtonVisiblity(show);
})
.catch(error => {
dispatch(historyClearFailure(error));
... ...
... ... @@ -81,7 +81,7 @@ export default function browseReducer(state=initialState, action) {
case HISTORY_CLEAR_SUCCESS: {
let {productList,categoryList,index} = action.payload;
let show = productList.size==0;
let show = productList.length==0;
return state.set('isDeleting', false)
.set('productList', Immutable.fromJS(productList))
... ...