|
@@ -217,11 +217,14 @@ export function deleteOneHistory(skn, index) { |
|
@@ -217,11 +217,14 @@ export function deleteOneHistory(skn, index) { |
217
|
if (indexInAll != -1) {
|
217
|
if (indexInAll != -1) {
|
218
|
productList = productList.delete(indexInAll);
|
218
|
productList = productList.delete(indexInAll);
|
219
|
}
|
219
|
}
|
220
|
- // if (productList.size == 0 || productList.length == 0) {
|
|
|
221
|
- // dispatch(historySortList());
|
|
|
222
|
- // }else {
|
220
|
+
|
|
|
221
|
+ if (productList.size == 0 || productList.length == 0) {
|
|
|
222
|
+ dispatch(historyClearSuccess());
|
|
|
223
|
+ dispatch(historySortList());
|
|
|
224
|
+ dispatch(historyList(0));
|
|
|
225
|
+ }else {
|
223
|
dispatch(historyDeleteSuccess({productList}));
|
226
|
dispatch(historyDeleteSuccess({productList}));
|
224
|
- // }
|
227
|
+ }
|
225
|
|
228
|
|
226
|
let show = productList.size > 0;
|
229
|
let show = productList.size > 0;
|
227
|
ReactNative.NativeModules.YH_RecorderHelper.setRightClearButtonVisiblity(show);
|
230
|
ReactNative.NativeModules.YH_RecorderHelper.setRightClearButtonVisiblity(show);
|