refactor: simplify chooseNotNull
This commit is contained in:
parent
185c620835
commit
c840d49ba3
1 changed files with 1 additions and 4 deletions
|
|
@ -156,10 +156,7 @@ const makeEditingValues = ({ customRequest, id }) => {
|
|||
}
|
||||
}
|
||||
|
||||
const chooseNotNull = (a, b) => {
|
||||
if (!R.isNil(b)) return b
|
||||
return a
|
||||
}
|
||||
const chooseNotNull = (a, b) => (R.isNil(b) ? a : b)
|
||||
|
||||
const Wizard = ({
|
||||
onClose,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue