From 7e54236181c5b5cf45c66c9db9290a2c91fd8329 Mon Sep 17 00:00:00 2001 From: Marcin Haba Date: Tue, 30 Aug 2022 05:08:49 +0200 Subject: [PATCH] Fix javascript error when director is not accessible --- Web/JavaScript/misc.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Web/JavaScript/misc.js b/Web/JavaScript/misc.js index 3e258ae..756253c 100644 --- a/Web/JavaScript/misc.js +++ b/Web/JavaScript/misc.js @@ -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() {