Commit 6c87a0fe authored by shenshaokai's avatar shenshaokai

fix: 供应商信息-入库分类信息-适用区域字段没有值默认空数组

parent 54b8379f
......@@ -477,7 +477,7 @@ const MemberDocCategoryPro: React.ForwardRefRenderFunction<MemberDocCategoryProR
// 由于 适用区域字段 areaCodes 改成非必填了 兼容一下 可能传递数组里面空对象的情况
if (Array.isArray(areaCodes)) {
areaCode = areaCode.filter(item => Object.keys(item).length);
areaCode = areaCode.length ? areaCode : null
// areaCode = areaCode.length ? areaCode : null
}
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