Browse Source

add filter request DIVISI_LIST where parent null

pull/2/head
wahyuun 1 year ago
parent
commit
e8c5a2c7d5
  1. 5
      src/views/SimproV2/CreatedProyek/index.js

5
src/views/SimproV2/CreatedProyek/index.js

@ -245,7 +245,9 @@ const CreatedProyek = ({ params, ...props }) => {
.then((res) => res)
.catch((err) => err.response);
if (result && result.data && result.data.code === 200) {
setDataDivisions(result.data.data);
const dataRes = result.data.data;
const filteredData = dataRes.filter(item => item.parent === null);
setDataDivisions(filteredData);
}
};
@ -1878,6 +1880,7 @@ const CreatedProyek = ({ params, ...props }) => {
projectK3={projectK3Search}
assignHR={projectAssignHR}
projectImage={image}
idTask={idTask}
/>
),
[openDialogViewDetail]

Loading…
Cancel
Save