I am trying to query a database in my website to filter a table. When I run the query in preview no results or errors are returned in the console. However if I check the console in the live site I get the following error
wixCode Uncaught (in promise) Error: The Test_DB2 dataset collection does not exist. You cannot work with a collection using the Data API before it is created in the Editor.
I have added the collection to the page and other elements on the page are using this database and it works just fine. I have also tried querying other databases in my website but get the same error every time.
Is there any reason this may be happening?