|
|
|
@ -292,7 +292,8 @@ const CreatedProyek = ({ params, ...props }) => {
|
|
|
|
|
|
|
|
|
|
const getDataProyek = async () => { |
|
|
|
|
let start = 0; |
|
|
|
|
|
|
|
|
|
let hierarchy = []; |
|
|
|
|
hierarchy.push(JSON.parse(localStorage.getItem("hierarchy"))); |
|
|
|
|
if (currentPage !== 1 && currentPage > 1) { |
|
|
|
|
start = currentPage * rowsPerPage - rowsPerPage; |
|
|
|
|
} |
|
|
|
@ -335,6 +336,7 @@ const CreatedProyek = ({ params, ...props }) => {
|
|
|
|
|
if (parseInt(role_id) !== 1) { |
|
|
|
|
payload["columns"] = [ |
|
|
|
|
{ name: "id", logic_operator: "=", value: proyek_id, operator: "AND" }, |
|
|
|
|
{ name: "created_by_id", logic_operator: "IN", value: hierarchy, operator: "AND" } |
|
|
|
|
]; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|