I use itemsjs in a Gatsby environnement, my items are loaded through API and sometimes it can return no items.
When no items is provided when indexing, it crashes when doing a search.
The crash occurs when doing a facet union:
Here is my fix for this issue.
I also added a test for this case in the search spec.
Hello there,
I use itemsjs in a Gatsby environnement, my items are loaded through API and sometimes it can return no items. When no items is provided when indexing, it crashes when doing a search.
The crash occurs when doing a facet union:
Here is my fix for this issue. I also added a test for this case in the search spec.
Really appreciate your work with this library.
Thank you for considering my fix.