|
@@ -102,27 +102,27 @@ export default withLayout((props) => {
|
102
|
102
|
pois.map((item) => {
|
103
|
103
|
let target = []
|
104
|
104
|
if(item.key === 'Transport') {
|
105
|
|
- target = (res.buildingTransport || '').split(',').map((subItem) => {
|
|
105
|
+ target = (res.buildingTransport || '').split(',').filter(Boolean).map((subItem) => {
|
106
|
106
|
return { name: subItem }
|
107
|
107
|
})
|
108
|
108
|
} else if(item.key === 'Mall') {
|
109
|
|
- target = (res.buildingMall || '').split(',').map((subItem) => {
|
|
109
|
+ target = (res.buildingMall || '').split(',').filter(Boolean).map((subItem) => {
|
110
|
110
|
return { name: subItem }
|
111
|
111
|
})
|
112
|
112
|
} else if(item.key === 'Edu') {
|
113
|
|
- target = (res.buildingEdu || '').split(',').map((subItem) => {
|
|
113
|
+ target = (res.buildingEdu || '').split(',').filter(Boolean).map((subItem) => {
|
114
|
114
|
return { name: subItem }
|
115
|
115
|
})
|
116
|
116
|
} else if(item.key === 'Hospital') {
|
117
|
|
- target = (res.buildingHospital || '').split(',').map((subItem) => {
|
|
117
|
+ target = (res.buildingHospital || '').split(',').filter(Boolean).map((subItem) => {
|
118
|
118
|
return { name: subItem }
|
119
|
119
|
})
|
120
|
120
|
} else if(item.key === 'Bank') {
|
121
|
|
- target = (res.buildingBank || '').split(',').map((subItem) => {
|
|
121
|
+ target = (res.buildingBank || '').split(',').filter(Boolean).map((subItem) => {
|
122
|
122
|
return { name: subItem }
|
123
|
123
|
})
|
124
|
124
|
} else if(item.key === 'Restaurant') {
|
125
|
|
- target = (res.buildingRestaurant || '').split(',').map((subItem) => {
|
|
125
|
+ target = (res.buildingRestaurant || '').split(',').filter(Boolean).map((subItem) => {
|
126
|
126
|
return { name: subItem }
|
127
|
127
|
})
|
128
|
128
|
}
|