Skip to content

Commit

Permalink
Edgecloud 2223 (#201)
Browse files Browse the repository at this point in the history
* Reset map on region change
  • Loading branch information
rahuldsce authored Mar 28, 2020
1 parent 3573977 commit da5e531
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 0 additions & 2 deletions src/container/MexListView.js
Original file line number Diff line number Diff line change
Expand Up @@ -478,8 +478,6 @@ class MexListView extends React.Component {
if (this.requestCount === 0 && dataList.length === 0) {
this.props.handleAlertInfo('error', 'Requested data is empty')
}


this.setState({
dataList: dataList
})
Expand Down
5 changes: 4 additions & 1 deletion src/utils/JsonUtil.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@ export const toJson = (data) => {
let toJson = []
if (data) {
if (typeof data === 'object') {
toJson = data.length>0 ? data : [data]
if(data)
{
toJson = Array.isArray(data) ? data : [data]
}
} else {
let toArray = data.split('\n')
toArray.pop();
Expand Down

0 comments on commit da5e531

Please sign in to comment.