refactor: destruct on arguments list
This commit is contained in:
parent
3956c419b5
commit
c3c837f87d
1 changed files with 2 additions and 3 deletions
|
|
@ -139,10 +139,9 @@ const formatValues = (values, isEditing) => {
|
||||||
return resObj
|
return resObj
|
||||||
}
|
}
|
||||||
|
|
||||||
const makeEditingValues = it => {
|
const makeEditingValues = ({ customRequest, id }) => {
|
||||||
const { customRequest } = it
|
|
||||||
return {
|
return {
|
||||||
id: it.id,
|
id,
|
||||||
requirementName: customRequest.name,
|
requirementName: customRequest.name,
|
||||||
screen1Title: customRequest.screen1.title,
|
screen1Title: customRequest.screen1.title,
|
||||||
screen1Text: customRequest.screen1.text,
|
screen1Text: customRequest.screen1.text,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue