Waht if you would use the reset in the ELSE-part?
if(results.items.length > 0) {
//...bla bla bla...
else {$w('#repeater1').data = []}
Or perhaps changing your FILTER-OPTIONS ?
From contains —> to eq ? or has Some ?
Try it out.
Waht if you would use the reset in the ELSE-part?
if(results.items.length > 0) {
//...bla bla bla...
else {$w('#repeater1').data = []}
Or perhaps changing your FILTER-OPTIONS ?
From contains —> to eq ? or has Some ?
Try it out.