Hi,
I have a repeater that is populated from a dataset.
After the rows are retrieved, I perform (in the code) a query from another collections to get more data.
According to this data, I would like to remove some of the items presented in the repeater.
Is it possible?
this is my Code
export function repeater1_itemReady($w, itemData, index) {
wixData.query("collection2")
.eq("memberId", itemData._owner)
.find()
.then( (results) => {
**if** (results.items.length > 0 ) {
// all o.k show item
} **else** {
// here i would like to remove the item from the repeater
// i didn't find how to remove an item from a repeater
}
} )
. **catch** ( (err) => {
console.log(err);
} );
}