I use the same code in several pages, which only displays database items that are Display==true(boolean). It works on all pages, as far as I’ve seen, but it’s not working on one page and I can’t figure out why.
this works:
import wixData from ‘wix-data’;
import wixLocation from ‘wix-location’;
$w.onReady( function () {
// HIDE / SHOW OTHERs
wixData.query(“EACexhibits”)
.eq(“display”, true )
.eq(“current”, true )
.eq(“whichGallery”,“other”)
.find()
.then((results) => {
this does not work. all items display, whether display==true or false.
// GET WIX DATA READY
import wixData from ‘wix-data’;
import wixLocation from ‘wix-location’;
$w.onReady( function () {
//if no data, hide the repeater - second Friday
wixData.query(“EACsecondFriday”)
.eq(“display”, true )
.find()
.then((results) => {
Any thoughts would be appreciated.
Thanks.