Skip to content

Commit fcf4117

Browse files
authored
Merge pull request NginxProxyManager#4206 from badkeyy/bugfix/update-dashboard-stats-on-change
Update the dashboard stats every time the dashboard is shown
2 parents 8351dd4 + d26e8c1 commit fcf4117

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

frontend/js/app/dashboard/main.js

+1-3
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)