Closed GuenoleK closed 7 years ago
An error is set with lodash _.isEmpty function when the checkbox is used (it returns true or false). It's not the wanted behaviour : https://lodash.com/docs/4.16.4#isEmpty
true
false
https://github.com/get-focus/focus-graph/blob/dda69ce42a0ea9cc02be4690e867a164da6b83f9/src/middlewares/validations.js#L35
The test here is always false when a checkbox send true/false value.
Behaviour
An error is set with lodash _.isEmpty function when the checkbox is used (it returns
true
orfalse
). It's not the wanted behaviour : https://lodash.com/docs/4.16.4#isEmptyhttps://github.com/get-focus/focus-graph/blob/dda69ce42a0ea9cc02be4690e867a164da6b83f9/src/middlewares/validations.js#L35
The test here is always false when a checkbox send true/false value.