rosnovsky / sanity-plugin-autocomplete-tags

Creatable autocomplete tag dropdown input fields for Sanity Studio 🤓
MIT License
24 stars 7 forks source link

[BUG] Field returns a `null` value if no `tags` exist in the document & an empty `tags: []` field is created for no good reason #9

Closed rosnovsky closed 4 years ago

rosnovsky commented 4 years ago

Describe the bug Basically, the tags field returns a null value if no tags exist in the document & and sets an empty tags: [] field is created for no good reason when you clear the tags field.

To Reproduce Steps to reproduce the behavior:

  1. Install plugin
  2. Add tags field to a type that hasn't had it in the past
  3. Open type in Studio
  4. See error

Screenshots slack-imgs com

CleanShot 2020-10-31 at 13 08 06@2x