React error when using ReferenceArrayInput in admin on rest

314 Views Asked by At

I'm trying to use the ReferenceInputArray field in admin on rest

    <ReferenceArrayInput label="Clients" source="clients" reference="Client" allowEmpty>
     <SelectArrayInput optionText="name" />
    </ReferenceArrayInput>

but i get this error:

uncaught at handleFetch Invariant Violation: Objects are not valid as a React child (found: object with keys {id, name, description, __typename}). If you meant to render a collection of children, use an array instead or wrap the object using createFragment(object) from the React add-ons. Check the render method of Chip.

0

There are 0 best solutions below