I did not test all this, just some theoretical thougts. This should be the way how to update, i think. Take also a look, what you get in your console-logs!
export function button2_click(event) {
let receivedData = wixWindow.lightbox.getContext();
console.log(receivedData);
let toUpdate = {
"_id": receivedData._id,
"title": receivedData.title,
"first_name": receivedData.firstName,
"last_name": receivedData.lastName,
};
wixData.update("UserStatuses", toUpdate)
.then( (results) => {
let item = results;
console.log(results)
console.log(results.items)
console.log(results.items[0])
wixWindow.lightbox.close('ok');
wixLocation.to(`/statuses-page`);
})
.catch( (err) => {
let errorMsg = err;
});
}
Edit: Forgot to show you the example, for my first CODE… here it is…
https://russian-dima.wixsite.com/meinewebsite/repeater-problem
When you take a look into CONSOLE, you will the what my first showed code does.