Browse Source

Merge pull request 'fix bug Approval' (#189) from dev-wahyun into staging

Reviewed-on: ordo/adw-frontend#189
pull/1/head
farhantock 1 year ago
parent
commit
b773d96416
  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}>
<Input
type="text"
value={item.tittle ? item.tittle : item.tittle}
name="title"
value={item.tittle ? item.tittle : ""}
name="tittle"
onChange={(e) => handleInputChangeApproval(e, index)}
/>
</Col>

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

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

Loading…
Cancel
Save