From 35a67abf3b96e08bef103dbc9a22a5ed9f5a8c1c Mon Sep 17 00:00:00 2001 From: abelCoronado93 Date: Thu, 29 Jun 2017 12:47:49 +0200 Subject: [PATCH] Solved bug in dashboard accounting --- src/sunstone/public/app/utils/accounting.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/sunstone/public/app/utils/accounting.js b/src/sunstone/public/app/utils/accounting.js index 139eb03056..c4812a9462 100644 --- a/src/sunstone/public/app/utils/accounting.js +++ b/src/sunstone/public/app/utils/accounting.js @@ -467,6 +467,10 @@ define(function(require) { var template = history.VM.TEMPLATE; + if(!template){ + break; + } + // --- cpu --- var val = parseFloat(template.CPU) * n_hours;