Browse Source

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

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

4
src/views/Dashboard/DashboardBOD.js

@ -245,7 +245,9 @@ const DashboardBOD = () => {
}
if (result.status == 200 && result.data.data) {
SET_PROJECT_PER_DIVISION(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