Page goes blank on second search

We have been building a docs site with docusaurus and added Algolia to it a couple months ago. More recently we noticed the search box causes the page to go blank. The error in the console says “Cannot read property ‘hierarchy’ of undefined”. I’m not sure how to diagnose this. Our website where the error occurs is at and our project is publicly available at GitHub - gdsestimating/winbidpro15-docs: Documentation site for WinBidPro 15

The error only seems to occur on the second search. I cleared my caches, did a search and clicked a result – worked. Then I did another search and it bombs after the first character.

What might we be missing?