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