Skip to content

Commit

Permalink
fix monitor page refresh
Browse files Browse the repository at this point in the history
  • Loading branch information
vapao committed Jun 16, 2021
1 parent 7cdf37e commit 74a1642
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spug_web/src/pages/monitor/Table.js
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 74a1642

Please sign in to comment.