Browse Source

update payload Approval

pull/1/head
wahyuun 1 year ago
parent
commit
c1c4579b3a
  1. 4
      src/views/SimproV2/CreatedProyek/index.js

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

@ -1088,7 +1088,7 @@ const CreatedProyek = ({ params, ...props }) => {
const request = data.map((res) => { const request = data.map((res) => {
const payload = { const payload = {
proyek_id: parseInt(id), proyek_id: parseInt(id),
tittle: res.title, tittle: res.tittle,
name: res.name, name: res.name,
date_approval: res.date, date_approval: res.date,
}; };
@ -1273,7 +1273,7 @@ const CreatedProyek = ({ params, ...props }) => {
const request = data.map((res) => { const request = data.map((res) => {
const payload = { const payload = {
proyek_id: parseInt(id), proyek_id: parseInt(id),
tittle: res.tittle ? res.tittle : res.title, tittle: res.tittle ? res.tittle : res.tittle,
name: res.name, name: res.name,
date_approval: res.date ? res.date : res.date_approval, date_approval: res.date ? res.date : res.date_approval,
}; };

Loading…
Cancel
Save