Topic: MDBSelect error on empty data
clickstudioltd pro premium priority asked 3 years ago
Expected behavior
No errors.
Actual behavior
I get this error in console when I pass an empty array to MDBSelect
. This error is shown when you open the list and there are no items:
Uncaught TypeError: reduce of empty array with no initial value
Resources (screenshots, code snippets etc.)
<MDBSelect data={[]} search required />
Wojciech Staniszewski staff answered 3 years ago
Thank you for reporting this. We will take a closer look at this soon. For now, you could disable Select, while the array is empty.
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Answered
- User: Pro
- Premium support: Yes
- Technology: MDB React
- MDB Version: MDB5 3.0.0
- Device: PC
- Browser: Mozilla Firefox
- OS: Windows 10
- Provided sample code: No
- Provided link: No