修复商品报错

This commit is contained in:
wangsongsole 2022-07-19 09:58:28 +08:00
parent 4cfe9ea44f
commit 2ae91d724d
2 changed files with 2 additions and 2 deletions

View File

@ -258,7 +258,7 @@ export default class adduserinfo extends React.Component {
return item.id == cur_product.product_category_id return item.id == cur_product.product_category_id
}) })
const productItem = picItem.products.find( const productItem = picItem?.products.find(
(item) => item.id == cur_product.id (item) => item.id == cur_product.id
) )

View File

@ -256,7 +256,7 @@ export default class adduserinfo extends React.Component {
const obj1 = [] const obj1 = []
const obj2 = [] const obj2 = []
const productItem = picItem.products.find( const productItem = picItem?.products.find(
(item) => item.id == cur_product.id (item) => item.id == cur_product.id
) )