I am trying to filter my dataset and then assign the result to my repeater content but I keep
getting undefined for the result. items does anyone has a better solution for this issue
import wixData from “wix-data” ;
v ar searchInfo = $w ( ‘#searchInput’ ). value ;
$w ( “#searchButton” ). onClick (()=>{
$w ( “#dataset1” ). setFilter ( wixData . filter ()
. contains ( “_id” , searchInfo )
)
. then (( results ) => {
console . log ( "Dataset is now filtered" );
//this return undefined when I console.log(result) out
$w ( "#repeater1" ). data = results.items ;
}). **catch** (( err ) => {
console . log ( err );
});
});