Browse Source

Merge pull request 'fix: add condition payload proyek search' (#9) from dev-wahyun into staging

Reviewed-on: #9
pull/11/head
farhantock 5 months ago
parent
commit
64fbaac553
  1. 3
      src/views/SimproV2/CreatedProyek/index.js

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

@ -395,10 +395,11 @@ const CreatedProyek = ({ params, ...props }) => {
orders: { columns: ["nama"], ascending: true },
paging: { start: start, length: rowsPerPage },
};
if (all_project === 'false' || all_project === 'null') {
payload.columns.push(
{ name: "created_by_id", logic_operator: "IN", value: [JSON.parse(hierarchy)], operator: "AND" }
);
}
const result = await axios
.post(PROYEK_SEARCH, payload, HEADER)

Loading…
Cancel
Save