When editing an existing invoices' unit of measure (UoF), it turns out that the input field returns NaN
instead of `` value when the UoF type changes from string
to `null`. Here are the following error message:
react-dom.development.js:86 Warning: Received NaN for the `value` attribute. If this is expected, cast the value to a string.
at input
at http://localhost:3000/static/js/bundle.js:4934:66
at div
at http://localhost:3000/static/js/bundle.js:4934:66
at InputBase (http://localhost:3000/static/js/bundle.js:15915:83)
at Input (http://localhost:3000/static/js/bundle.js:16923:82)
at div
at http://localhost:3000/static/js/bundle.js:4934:66
at FormControl (http://localhost:3000/static/js/bundle.js:13578:82)
at http://localhost:3000/static/js/bundle.js:4934:66
at TextField (http://localhost:3000/static/js/bundle.js:25484:83)
at div
at http://localhost:3000/static/js/bundle.js:4934:66
at DialogContent (http://localhost:3000/static/js/bundle.js:11988:82)
at form
at div
at http://localhost:3000/static/js/bundle.js:4934:66
at Paper (http://localhost:3000/static/js/bundle.js:20176:82)
at http://localhost:3000/static/js/bundle.js:4934:66
at div
at http://localhost:3000/static/js/bundle.js:4934:66
at Transition (http://localhost:3000/static/js/bundle.js:77347:30)
at Fade (http://localhost:3000/static/js/bundle.js:12790:77)
at TrapFocus (http://localhost:3000/static/js/bundle.js:8215:5)
at div
at http://localhost:3000/static/js/bundle.js:4934:66
at Portal (http://localhost:3000/static/js/bundle.js:7785:5)
at ModalUnstyled (http://localhost:3000/static/js/bundle.js:6968:5)
at Modal (http://localhost:3000/static/js/bundle.js:19011:82)
at http://localhost:3000/static/js/bundle.js:4934:66
at Dialog (http://localhost:3000/static/js/bundle.js:12404:83)
at div
at Items (http://localhost:3000/static/js/bundle.js:2514:74)
at Routes (http://localhost:3000/static/js/bundle.js:77149:5)
at Router (http://localhost:3000/static/js/bundle.js:77082:15)
at HashRouter (http://localhost:3000/static/js/bundle.js:75925:5)
at App
printWarning @ react-dom.development.js:86