Skip to content

Commit

Permalink
Fix javascript error when director is not accessible
Browse files Browse the repository at this point in the history
  • Loading branch information
ganiuszka committed Aug 30, 2022
1 parent f7ac75a commit 7e54236
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Web/JavaScript/misc.js
Original file line number Diff line number Diff line change
Expand Up @@ -1017,7 +1017,7 @@ var Dashboard = {
document.getElementById(this.ids.jobs.most_count).textContent = occupancy;
},
update_jobtotals: function() {
document.getElementById(this.ids.jobtotals.total_bytes).textContent = Units.get_formatted_size(this.stats.jobtotals.bytes);
document.getElementById(this.ids.jobtotals.total_bytes).textContent = Units.get_formatted_size(this.stats.jobtotals.bytes || 0);
document.getElementById(this.ids.jobtotals.total_files).textContent = this.stats.jobtotals.files || 0;
},
update_database: function() {
Expand Down

0 comments on commit 7e54236

Please sign in to comment.