sanity-io / sanity-plugin-internationalized-array

A plugin to register array fields with a custom input component to store field values in multiple languages, queryable by using the language ID as an array `_key`.
MIT License
41 stars 10 forks source link

fix: portable content integration and better error handling for member in error #31

Closed d4v1d82 closed 1 year ago

d4v1d82 commented 1 year ago

After some try in order to fix issue #15 I found that forwarding all the props to ArrayOfObjectsItem solves the issue.

Also, following how array objects are handled in sanity, I've used MemberItemError instead of returning null in case of error

SimeonGriggs commented 1 year ago

Excellent, thanks for the PR!