Commit 0715f844 authored by GuanHua's avatar GuanHua

fix: 修改app联营商城装修的问题

parent 8afbddcf
......@@ -138,7 +138,7 @@ const appMallEdit: React.FC<ShopPreviewPropsType> = (props) => {
}
break
case 2:
const shopDetails = list.filter((item: any) => item.type === type)[0].details || []
const shopDetails = list.filter((item: any) => item.type === type)[0]?.details || []
const shopResList: any[] = []
if (shopDetails && shopDetails.length > 0) {
const memberShopInGoodsList: any = []
......@@ -169,7 +169,7 @@ const appMallEdit: React.FC<ShopPreviewPropsType> = (props) => {
listRes = shopResList
break
case 3:
const brandDetails = list.filter((item: any) => item.type === type)[0].details || []
const brandDetails = list.filter((item: any) => item.type === type)[0]?.details || []
let brandDetailsIds: any = []
const brandResList: any[] = []
brandDetails.forEach((detailsItem) => {
......@@ -198,7 +198,7 @@ const appMallEdit: React.FC<ShopPreviewPropsType> = (props) => {
listRes = brandResList
break
case 4:
const infoIds = list.filter((item: any) => item.type === type)[0].id || []
const infoIds = list.filter((item: any) => item.type === type)[0]?.id || []
idsRes = infoIds
if (idsRes && idsRes.length > 0) {
const param: any = {
......
......@@ -48,6 +48,7 @@
.login-form-box {
background-color: #fff;
height: 447px;
h2 {
line-height: 2;
......@@ -142,4 +143,4 @@
75% {
transform: scale(1.5);
}
}
\ No newline at end of file
}
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