...
|
...
|
@@ -419,11 +419,11 @@ export function deleteGlobal(skn, index) { |
|
|
let {productList} = globalProduct;
|
|
|
productList = productList.delete(index);
|
|
|
dispatch(globalDeleteSuccess({productList}));
|
|
|
if (productList.size == 0) {
|
|
|
dispatch(setProductTab('common'));
|
|
|
let show = commonProduct.get('productList').size > 0;
|
|
|
ReactNative.NativeModules.YH_RecorderHelper.setRightEditButtonVisiblity(show);
|
|
|
}
|
|
|
// if (productList.size == 0) {
|
|
|
// dispatch(setProductTab('common'));
|
|
|
// let show = commonProduct.get('productList').size > 0;
|
|
|
// ReactNative.NativeModules.YH_RecorderHelper.setRightEditButtonVisiblity(show);
|
|
|
// }
|
|
|
dispatch(setEditedIndex(-1));
|
|
|
})
|
|
|
.catch(error => {
|
...
|
...
|
|