We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents be5278f + f537619 commit f90d839Copy full SHA for f90d839
frontend/js/app/dashboard/main.js
@@ -50,7 +50,8 @@ module.exports = Mn.View.extend({
50
onRender: function () {
51
let view = this;
52
53
- Api.Reports.getHostStats()
+ if (typeof view.stats.hosts === 'undefined') {
54
+ Api.Reports.getHostStats()
55
.then(response => {
56
if (!view.isDestroyed()) {
57
view.stats.hosts = response;
@@ -60,6 +61,7 @@ module.exports = Mn.View.extend({
60
61
.catch(err => {
62
console.log(err);
63
});
64
+ }
65
},
66
67
/**
0 commit comments