refactor: simplify chooseNotNull

This commit is contained in:
siiky 2024-09-02 16:56:34 +01:00
parent 185c620835
commit c840d49ba3

View file

@ -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,