How to create scripts for filtering the List/Grid element data?


#1

Happy new year React Studio team and community! Back to work, some good progress but still facing some problems to finish the project.
I was using a script to filter a list based on this video.
I can’t’ figure out why it suddenly stopped working properly. I’ve checked the data slot, script and if the field was saving to data slot when typing. It seems that has something to do with the property. Right?
TypeError: Cannot read property ‘includes’ of undefined
Any idea how to fix it?
Thank you

How to create scripts for filtering the List/Grid element data


#2

I found the problem and how to fix it. To save you time, I mean hours trying to find the error you think is related to your script, data slots, properties, etc.
If someone is facing this kind of problem, using React Studio and Firebase, although everything looks fine, properties checked and reviewed several times and some “property is undefined”, just go to [ data tab ] and [ Reload data from service]
Voilà! everything will be back and doing fine.