From 2ae91d724d381351012c6209ff5df3cce4439c76 Mon Sep 17 00:00:00 2001 From: wangsongsole Date: Tue, 19 Jul 2022 09:58:28 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=95=86=E5=93=81=E6=8A=A5?= =?UTF-8?q?=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/exchangecode/product/add.js | 2 +- src/pages/plan/product/add.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pages/exchangecode/product/add.js b/src/pages/exchangecode/product/add.js index 4a045149..ef18670f 100644 --- a/src/pages/exchangecode/product/add.js +++ b/src/pages/exchangecode/product/add.js @@ -258,7 +258,7 @@ export default class adduserinfo extends React.Component { return item.id == cur_product.product_category_id }) - const productItem = picItem.products.find( + const productItem = picItem?.products.find( (item) => item.id == cur_product.id ) diff --git a/src/pages/plan/product/add.js b/src/pages/plan/product/add.js index 69a70a2f..354cfe0b 100644 --- a/src/pages/plan/product/add.js +++ b/src/pages/plan/product/add.js @@ -256,7 +256,7 @@ export default class adduserinfo extends React.Component { const obj1 = [] const obj2 = [] - const productItem = picItem.products.find( + const productItem = picItem?.products.find( (item) => item.id == cur_product.id )