Browse Source

Merge branch 'staging' of https://git.oslog.id/ordo/adw-frontend into Dev-Farhan

pull/1/head
farhan048 1 year ago
parent
commit
46d2d23659
  1. 4
      src/views/SimproV2/CreatedProyek/DialogFormProyek.js
  2. 4
      src/views/SimproV2/CreatedProyek/index.js

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

@ -1455,8 +1455,8 @@ const DialogFormProyek = ({
<Col md={3}> <Col md={3}>
<Input <Input
type="text" type="text"
value={item.tittle ? item.tittle : item.tittle} value={item.tittle ? item.tittle : ""}
name="title" name="tittle"
onChange={(e) => handleInputChangeApproval(e, index)} onChange={(e) => handleInputChangeApproval(e, index)}
/> />
</Col> </Col>

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

@ -1092,7 +1092,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,
}; };
@ -1277,7 +1277,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