@ahmadnasriya Oh, yes thanks!!
It’s fixed now, thank you so much for your help
If others have the same issue, here’s the code that worked for me:
import wixData from 'wix-data';
$w.onReady(() => {
$w('#dropdown2').onChange((event) => {
let filterType = $w('#dropdown2').value;
if (filterType === "Tout"){
$w('#dataset1').setFilter(wixData.filter());
} else{
$w('#dataset1').setFilter(wixData.filter().contains("type", filterType));
} })
})
Have a nice day