Browse Source

add filter request endpoint dashboard/get-total-project-per-division1~

pull/2/head
wahyuun 1 year ago
parent
commit
d48322a6a8
  1. 6
      src/views/Dashboard/DashboardBOD.js

6
src/views/Dashboard/DashboardBOD.js

@ -244,8 +244,10 @@ const DashboardBOD = () => {
return;
}
if (result.status == 200 && result.data.data) {
SET_PROJECT_PER_DIVISION(result.data.data);
if (result.status == 200 && result.data.data) {
let dataRes = result.data.data;
const filteredData = dataRes.filter(item => item.parent === null);
SET_PROJECT_PER_DIVISION(filteredData);
}
SET_READY_PROJECT_PER_DIVISION(true);
}

Loading…
Cancel
Save