You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
I have a usecase to return the array of object when I am selecting multiselect field but it is giving me error as "Cannot read properties of undefined (reading 'map')"
To Reproduce
Steps to reproduce the behavior:
Create one more multiselect storybook field in your existing code which will return the object
Please Note: I tried changing the useMultiSelectFieldProps and compared object using deep equal and some null checks so it is working for me. Do have a look on this:
@MiroslavPetrik Would you be able to help with this ? For now we copied the hooked and added deepEqual when object comparision if getValue returns array of object
Describe the bug
I have a usecase to return the array of object when I am selecting multiselect field but it is giving me error as "Cannot read properties of undefined (reading 'map')"
To Reproduce
Steps to reproduce the behavior:
Expected behavior
I want to submit the multiselect in form of object.
Screenshots
I took one of your given example of countryOptions:
Please Note: I tried changing the useMultiSelectFieldProps and compared object using deep equal and some null checks so it is working for me. Do have a look on this:
Working screenshot:
The text was updated successfully, but these errors were encountered: