Hello @asa!
[ UPDATE ] We’ve just released a fixed for this issue. If you want to have access to the fix send us a private message with the url of your repository!
This is happening because, if the API ID for field has an underscore, this can cause the query to break. You can solve this by changing the API ID of the field to be able to perform the query: visibleonsite . Just remember that If you do this, it will cause the content of the original field to disappear from all existing documents. You’ll need to re-populate the new field with content after changing its API ID.
To learn more about this, read this article: What happens if I remove or rename the API ID of a field on a Custom Type.