Commit c12040b5 authored by shenshaokai's avatar shenshaokai

Merge branch 'fix-20221102' into 'jinfa-20221102'

fix: 供应商信息-入库分类信息-适用区域字段没有值默认空数组 See merge request project/jinfa-platform!499
parents 575c0fa1 6c87a0fe
...@@ -477,7 +477,7 @@ const MemberDocCategoryPro: React.ForwardRefRenderFunction<MemberDocCategoryProR ...@@ -477,7 +477,7 @@ const MemberDocCategoryPro: React.ForwardRefRenderFunction<MemberDocCategoryProR
// 由于 适用区域字段 areaCodes 改成非必填了 兼容一下 可能传递数组里面空对象的情况 // 由于 适用区域字段 areaCodes 改成非必填了 兼容一下 可能传递数组里面空对象的情况
if (Array.isArray(areaCodes)) { if (Array.isArray(areaCodes)) {
areaCode = areaCode.filter(item => Object.keys(item).length); areaCode = areaCode.filter(item => Object.keys(item).length);
areaCode = areaCode.length ? areaCode : null // areaCode = areaCode.length ? areaCode : null
} }
const res = onSubmit({ const res = onSubmit({
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment