...
|
...
|
@@ -217,11 +217,14 @@ export function deleteOneHistory(skn, index) { |
|
|
if (indexInAll != -1) {
|
|
|
productList = productList.delete(indexInAll);
|
|
|
}
|
|
|
// if (productList.size == 0 || productList.length == 0) {
|
|
|
// dispatch(historySortList());
|
|
|
// }else {
|
|
|
|
|
|
if (productList.size == 0 || productList.length == 0) {
|
|
|
dispatch(historyClearSuccess());
|
|
|
dispatch(historySortList());
|
|
|
dispatch(historyList(0));
|
|
|
}else {
|
|
|
dispatch(historyDeleteSuccess({productList}));
|
|
|
// }
|
|
|
}
|
|
|
|
|
|
let show = productList.size > 0;
|
|
|
ReactNative.NativeModules.YH_RecorderHelper.setRightClearButtonVisiblity(show);
|
...
|
...
|
|