I can’t answer that as I don’t have access to your page and how you have wired up the datasets. All I can tell you is what I see and that is that your console.log shows an empty items array when you getItems. Do you have a filter applied somewhere on the dataset?
Try changing the getItems call for debugging to this.
$w(‘#dataset1’).setFilter(wixData.filter())
.then(() => {
return $w(‘#dataset1’).getItems(0, $w(‘#dataset1’).getTotalCount());
})
.then((result) => {
...
This will clear any existing filters before loading the dataset contents.
If this still returns an empty result set then you have data collection config issues that can only be debugged in the Wix Editor.
Hope this helps.
Steve