|
|
|
@ -240,7 +240,7 @@ const Kanban = ({ params, ...props }) => {
|
|
|
|
|
const payload = { |
|
|
|
|
columns: [ |
|
|
|
|
{ |
|
|
|
|
name: "created_by", |
|
|
|
|
name: "created_by_id", |
|
|
|
|
logic_operator: "IN", |
|
|
|
|
value: hierarchy, |
|
|
|
|
operator: "AND" |
|
|
|
@ -261,11 +261,9 @@ const Kanban = ({ params, ...props }) => {
|
|
|
|
|
orders: { columns: ["id"], ascending: false }, |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
if (parseInt(role_id) !== 1) { |
|
|
|
|
payload["columns"] = [ |
|
|
|
|
{ name: "id", logic_operator: "=", value: project, operator: "AND" }, |
|
|
|
|
]; |
|
|
|
|
} |
|
|
|
|
// if (parseInt(role_id) !== 1) {
|
|
|
|
|
// payload.columns.push( { name: "id", logic_operator: "=", value: project, operator: "AND" });
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
const result = await axios |
|
|
|
|
.post(PROYEK_SEARCH, payload, HEADER) |
|
|
|
|