LiamMartens / sanity-plugin-intl-input

Intl input for Sanity with a cleaner UI than a default solution
MIT License
111 stars 22 forks source link

PublishWithi18nAction interprets validation Warnings as Errors #58

Closed daniel-akerman-eqtpartners closed 3 years ago

daniel-akerman-eqtpartners commented 3 years ago

This is related to the fix of this issue https://github.com/LiamMartens/sanity-plugin-intl-input/issues/46

Now warnings will be interpreted as errors which is not the default behaviour of Sanity. Instead of just looking at the marker I suggest adding a check to see if it's actually a error

markers.some(marker => marker.level === 'error')