Skip to content

Commit d26e8c1

Browse files
committed
Change onRender function to always update the dashboard stats
1 parent 4ea50ca commit d26e8c1

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

frontend/js/app/dashboard/main.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,7 @@ module.exports = Mn.View.extend({
5050
onRender: function () {
5151
let view = this;
5252

53-
if (typeof view.stats.hosts === 'undefined') {
54-
Api.Reports.getHostStats()
53+
Api.Reports.getHostStats()
5554
.then(response => {
5655
if (!view.isDestroyed()) {
5756
view.stats.hosts = response;
@@ -61,7 +60,6 @@ module.exports = Mn.View.extend({
6160
.catch(err => {
6261
console.log(err);
6362
});
64-
}
6563
},
6664

6765
/**

0 commit comments

Comments
 (0)