Authored by Zhu-Arthur

普通收藏为0

... ... @@ -351,11 +351,11 @@ export function deleteCommon(product_id, index) {
productList = productList.delete(indexInAll);
}
dispatch(commonDeleteSuccess({productList, selectedProductList}));
if (selectedProductList.size == 0) {
dispatch(setSelectedCategory(-1, 0));
let newCategoryList =categoryList.delete(selectedCategoryIndex);
dispatch(setCategoryList(newCategoryList));
}
// if (selectedProductList.size == 0) {
// dispatch(setSelectedCategory(-1, 0));
// let newCategoryList =categoryList.delete(selectedCategoryIndex);
// dispatch(setCategoryList(newCategoryList));
// }
let show = productList.size > 0;
ReactNative.NativeModules.YH_RecorderHelper.setRightEditButtonVisiblity(show);
})
... ...