Error with JS in live site but works fine in Preview Site

@shan - I did check the database collection and ensure it was set to anyone.

@Yisrael - I fixed the issue with having 2 onReadys but that didn’t make a difference. As for fuse.js, there doesn’t actually seem to be any issue with the way that module works. It is searching my database collection array without error. I am going to try and disable it just in case and run a test that way.

Also the error is definitely happening with my dataset filtering function because my console is showing:

There was an error filtering the dataset: TypeError: Cannot read property 'type' of undefined

Which is thrown by my function which is filtering my dataset.