diff --git a/console-ui/src/layouts/MainLayout.js b/console-ui/src/layouts/MainLayout.js index 33bd2c7d7..b92ea4b61 100644 --- a/console-ui/src/layouts/MainLayout.js +++ b/console-ui/src/layouts/MainLayout.js @@ -39,7 +39,7 @@ class MainLayout extends React.Component { getState: PropTypes.func, functionMode: PropTypes.string, authEnabled: PropTypes.string, - children: PropTypes.object, + children: PropTypes.array, getNotice: PropTypes.func, notice: PropTypes.string, }; @@ -152,7 +152,9 @@ class MainLayout extends React.Component {
+
{k}={metadata[k]}
)); diff --git a/console-ui/src/pages/ServiceManagement/SubscriberList/SubscriberList.js b/console-ui/src/pages/ServiceManagement/SubscriberList/SubscriberList.js index 9a6bbb4b0..60989d57f 100644 --- a/console-ui/src/pages/ServiceManagement/SubscriberList/SubscriberList.js +++ b/console-ui/src/pages/ServiceManagement/SubscriberList/SubscriberList.js @@ -111,6 +111,8 @@ class SubscriberList extends React.Component { render() { const { locale = {}, subscriberData = {} } = this.props; const { count = 0, subscribers = [] } = subscriberData; + const subscribersArray = Array.isArray(subscribers) ? subscribers : []; + const { pubNoData, subscriberList, @@ -186,7 +188,7 @@ class SubscriberList extends React.Component {