Filtering a dataset

@volkaertskristof
import wixData from ‘wix-data’ ;

//$w.onReady(function () {
// $w(‘#dynamicDataset’).onReady( () => {
// var newFilter = wixData.filter();
//newFilter = newFilter.contains(‘name’, “Supplies”);
//$w(‘#dynamicDataset’).setFilter(newFilter);

//$w(“#repeater1”).expand()
// })
//})

$w.onReady( function () {
$w.onReady( async function () {
var newFilter = wixData.filter();
var filterCat = newFilter.contains( ‘type’ , “cat” );
var filterDog = newFilter.contains( ‘type’ , “dog” );

await $w( ‘#dynamicDataset’ ).setFilter(filterCat.or(filterDog))
$w( ‘#dynamicDataset’ ).onReady( () => {
$w( “#repeater1” ).expand()
})
})
});

The code i used is the above…
The grey one worked just perfect…
The other one with the or filtering is not

thx in advance…