Skip to content

Commit

Permalink
🎨 [Frontend] No usage found in time range (ITISFoundation#6160)
Browse files Browse the repository at this point in the history
  • Loading branch information
odeimaiz authored Aug 9, 2024
1 parent 629cd0a commit 6d2de29
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ qx.Class.define("osparc.desktop.credits.CreditsPerService", {
osparc.data.Resources.fetch("resourceUsage", "getUsagePerService", params)
.then(entries => {
this._removeAll();
if (entries) {
if (entries && entries.length) {
let totalCredits = 0;
entries.forEach(entry => totalCredits+= entry["osparc_credits"]);
let datas = [];
Expand Down

0 comments on commit 6d2de29

Please sign in to comment.