修复商品报错
This commit is contained in:
parent
4cfe9ea44f
commit
2ae91d724d
|
@ -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
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue