Merge branch 'NginxProxyManager:develop' into develop

This commit is contained in:
Sergey Kolesnik
2024-12-23 19:18:09 -05:00
committed by GitHub
6 changed files with 18 additions and 4 deletions

View File

@ -50,7 +50,8 @@ module.exports = Mn.View.extend({
onRender: function () {
let view = this;
Api.Reports.getHostStats()
if (typeof view.stats.hosts === 'undefined') {
Api.Reports.getHostStats()
.then(response => {
if (!view.isDestroyed()) {
view.stats.hosts = response;
@ -60,6 +61,7 @@ module.exports = Mn.View.extend({
.catch(err => {
console.log(err);
});
}
},
/**