Have a look at this line:
newFilter = newFilter.contains('categoria', categoria)
Are you sure the field key is “categoria”?
Have a look at this line:
newFilter = newFilter.contains('categoria', categoria)
Are you sure the field key is “categoria”?