Commit 90da56c9 authored by Alexis Reigel's avatar Alexis Reigel

Merge branch 'fixes/latest-workload' into 'master'

latest workload instead of 1 year back

See merge request !39
parents a639368e 9dd8b7bd
Pipeline #12501 passed with stages
in 1 minute and 52 seconds
......@@ -13,6 +13,8 @@ class PanFetchEmployees extends HTMLElement {
fetchJson(`${baseUrl}/staff`),
fetchJson(`${baseUrl}/salary`),
]).then(([staffJson, salaryJson]) => {
const { oneYearBack } = salaryJson.salaries;
const bubbles = [
{
label: 'Average Age per Employee',
......@@ -36,7 +38,7 @@ class PanFetchEmployees extends HTMLElement {
},
{
label: 'Workload per Employee',
value: `${salaryJson.salaries.oneYearBack[0].workload}%`,
value: `${oneYearBack[oneYearBack.length - 1].workload}%`,
},
];
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment