ChrisEbert / strapi-plugin-country-select

A strapi custom field for selecting any country based on the ISO 3166-1 country code standard.
MIT License
10 stars 12 forks source link

Prevent error message when empty #4

Closed marob closed 1 year ago

marob commented 1 year ago

Since https://github.com/ChrisEbert/strapi-plugin-country-select/commit/0e6bc1a3d635c442f61fcd059764a88d04a5fcb9#diff-99a23c21f1c3d148980f67693f7bf7bde4069cfe397fb90f778fdabf8556c7e4, when the field is empty, the following error message is displayed:

Unsupported country code ""

This PR fixes this issue.