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) => {
|
const chooseNotNull = (a, b) => (R.isNil(b) ? a : b)
|
||||||
if (!R.isNil(b)) return b
|
|
||||||
return a
|
|
||||||
}
|
|
||||||
|
|
||||||
const Wizard = ({
|
const Wizard = ({
|
||||||
onClose,
|
onClose,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue