Database with values doesn’t show up on search
Website is https://bit.ly/3kpFbvn
Whenever any option is selected the repeater disappears but the console log shows the dataset is filtered. No error there. Wondering what simple thing I am doing wrong.
// For full API documentation, including code examples, visit https://wix.to/94BuAAs
import wixData from 'wix-data';
$w.onReady(function () {
// TODO: write your page related code here...
});
export async function button1_click_1(event, $w) {
$w("#dataset1").setFilter(wixData.filter()
.contains("bikeType", $w('#dropdown1').value)
.ge("engineCC", Number($w('#dropdown2').value))
)
.then(() => {
console.log("Dataset is now filtered");
})
.catch((err) => {
console.log(err);
});
$w('#repeater1').expand();
}
export function button2_click(event) {
$w("#dataset1").setFilter(wixData.filter());
$w('#dropdown1').resetValidityIndication();
$w('#dropdown2').resetValidityIndication();
$w('#dropdown3').resetValidityIndication();
$w("#dropdown1").selectedIndex = undefined;
$w('#dropdown2').selectedIndex = undefined;
}
Snapshot of collection below.
I’m sure someone out here has the answer. TIA.