fix monitor page refresh

pull/342/head
vapao 2021-06-16 09:13:35 +08:00
parent 7cdf37eba5
commit 74a164296e
1 changed files with 1 additions and 1 deletions

View File

@ -25,7 +25,7 @@ class ComTable extends React.Component {
componentDidMount() {
store.fetchRecords();
if (groupStore.records.length === 0) groupStore.fetchRecords();
if (hostStore.records.length === 0) {
if (!hostStore.records || hostStore.records.length === 0) {
hostStore.fetchRecords().then(this._handleHosts)
} else {
this._handleHosts()