sanity-io / sanity-algolia

Utilities for indexing Sanity documents in Algolia
MIT License
67 stars 16 forks source link

fix(flattenBlocks): check if text property exists #7

Closed eunjae-lee closed 3 years ago

eunjae-lee commented 3 years ago

Summary

This PR add a filter to check if text property exists.

I have a custom schema that doens't have text property and it's one of the children of document.body.

I didn't add any test, but feel free to update this PR to add any test if needed.

runeb commented 3 years ago

Good good! Thanks again @eunjae-lee