Problem with collection

Are you sure you spelled the collection name correctly (It’s case sensitive)?

Anyway, you make the loadCategoria() function simpler:

 function loadCategoria (){ 
wixData.query('categoria')
.distinct("title") 
.then((res) => { 
  let categories = res.items;
  let options = categories.map(c => {return {"label": c, "value": c}});
   $w("#dropdown1").options = options; 
})
}