From e2a3b3cd93d9bdc504f4118b17aa34e4541b703f Mon Sep 17 00:00:00 2001 From: farhantock Date: Mon, 27 Nov 2023 10:26:21 +0700 Subject: [PATCH] update filter by hierarchy --- src/views/SimproV2/CreatedProyek/index.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/views/SimproV2/CreatedProyek/index.js b/src/views/SimproV2/CreatedProyek/index.js index 5b9f8f6..fb1a538 100644 --- a/src/views/SimproV2/CreatedProyek/index.js +++ b/src/views/SimproV2/CreatedProyek/index.js @@ -306,7 +306,7 @@ const CreatedProyek = ({ params, ...props }) => { const getDataProyek = async () => { let start = 0; let hierarchy = []; - //hierarchy.push(JSON.parse(localStorage.getItem("hierarchy"))); + hierarchy.push(JSON.parse(localStorage.getItem("hierarchy"))); if (currentPage !== 1 && currentPage > 1) { start = currentPage * rowsPerPage - rowsPerPage; } @@ -346,9 +346,8 @@ const CreatedProyek = ({ params, ...props }) => { paging: { start: start, length: rowsPerPage }, }; - if (parseInt(role_id) !== 1) { + if (parseInt(role_id) !== 70) { payload["columns"] = [ - { name: "id", logic_operator: "=", value: proyek_id, operator: "AND" }, { name: "created_by_id", logic_operator: "IN", value: hierarchy, operator: "AND" } ]; }