|
@@ -97,13 +97,13 @@ function CartBody(props) {
|
97
|
97
|
});
|
98
|
98
|
}
|
99
|
99
|
|
100
|
|
- const { buildingImg = []} = data
|
101
|
|
-
|
|
100
|
+ const { buildingImg } = data
|
|
101
|
+ console.log("buildingImg: ", data.buildingImg, "data: ", data)
|
102
|
102
|
return (
|
103
|
103
|
<Card
|
104
|
104
|
hoverable
|
105
|
105
|
style={{ minWidth: '330px', borderRadius: '12px', margin: '10px', boxShadow: '0px 0px 16px 2px rgba(0,0,0,0.12)' }}
|
106
|
|
- cover={<img alt="example" src={(buildingImg[0] || {}).url} style={{ borderRadius: '12px 12px 0 0', width: '100%', height: '14vw' }}></img>}
|
|
106
|
+ cover={<img alt="example" src={((data.buildingImg && data.buildingImg[0]) || {}).url} style={{ borderRadius: '12px 12px 0 0', width: '100%', height: '14vw' }}></img>}
|
107
|
107
|
bodyStyle={{ padding: '10px 20px' }}
|
108
|
108
|
>
|
109
|
109
|
<p className={Styles.cardText}>
|