- {statistics.map(item => (
-
-
-

+
+
+ {data.map(item => (
+
+
+

+
+
+
{item.title}
+
{item.count}
+
-
-
{item.title}
-
{item.count}
-
-
- ))}
-
+ ))}
+
+
);
}
-export default LocationInfoPanel;
+export default Connect([NS_BI_STATISTICS], true)(LocationInfoPanel);
diff --git a/src/pages/Container/Map/index.js b/src/pages/Container/Map/index.js
index 7aa75de..84b95a9 100644
--- a/src/pages/Container/Map/index.js
+++ b/src/pages/Container/Map/index.js
@@ -83,7 +83,7 @@ function Map(props) {
setTimeout(() => {
if (window.sessionStorage.getItem("token")) {
props.getCorpInfo().then(({ data }) => {
- if ([0, 1, 6].includes(data.type)) {
+ if ([0, 1, 6].includes(data?.type)) {
const id = data.id;
const name = data.corpName;
const longitude = data.longitude;