Hi Matt -
Maybe try to rewrite the code as follows:
CODE:
--------
let currentitem = $w(“#dataset2”) .getCurrentItem();
console.log("currentitem: " + currentitem);
wixData.query('Projects')
.eq("_id", **currentitem._id** )
.find()
.then(res => {
console.log(res.items);
});
I did try this code and it was working. Let me know if it works for you.
The main difference in the code is where you are trying to access the “._id” property. It appears that you need to first get the current item, and then you can access/use the current item’s properties.
Best,
Nick