Browse Source

update is_customer

pull/1/head
wahyuun 9 months ago
parent
commit
68a542dbd0
  1. 6
      src/views/SimproV2/CreatedProyek/DialogAssignCust.js

6
src/views/SimproV2/CreatedProyek/DialogAssignCust.js

@ -44,14 +44,14 @@ const DialogAssignCust = ({ openDialog, closeDialog, toggleDialog, idTask, compa
"select": [
"id",
"name",
"role_id"
"is_customer"
],
"paging": {
"start": 0,
"length": -1
},
"columns": [
{ "name": "role_id", "logic_operator": "=", "value": 44 },
{ "name": "is_customer", "logic_operator": "=", "value": true },
{ "name": "company_id", "logic_operator": "=", "value": company_id },
],
"orders": {
@ -69,7 +69,7 @@ const DialogAssignCust = ({ openDialog, closeDialog, toggleDialog, idTask, compa
if (result && result.status == 200) {
let dataRes = result.data.data;
const filteredData = dataRes.filter(item => item.role_id === 44);
const filteredData = dataRes.filter(item => item.is_customer === true);
setTransferUser(filteredData);
}
}

Loading…
Cancel
Save