Commit 9dd8b7bd authored by Alexis Reigel's avatar Alexis Reigel
Browse files

latest workload instead of 1 year back

parent a639368e
Pipeline #12500 passed with stage
in 1 minute and 13 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