ReferenceArrayInput
with AutocompleteArrayInput
throws error if the array is empty
#7685
Labels
ReferenceArrayInput
with AutocompleteArrayInput
throws error if the array is empty
#7685
What you were expecting:
I expect the autocomplete to be empty for no references returned i.e. {data: [], total: 0}
What happened instead:
The page throws error
TypeError: Cannot read properties of undefined (reading 'length')
As soon as I create a
Tag
, the form is happySteps to reproduce:
Create a form that relies on a many-to-many rels, i.e. a classic Posts-Tags
The text was updated successfully, but these errors were encountered: