I get this error when i try to send a sendgrid email with onItemReady.Somebody could help me?
The “onItemReady” function of “repeater1” threw the following error: Cannot read property ‘getDate’ of undefined
; (745 LINE)
$w(“#uploadButton1”).startUpload()
.then((uploadedFile) => {
$w(“#repeater1”).onItemReady(($item, itemData, index) => {
let language = itemData.language;
if (language === “EN”) {
let recipient = itemData.email;
send4(uploadedFile, recipient);
} **else** {
let recipient = itemData.email;
send3(uploadedFile, recipient);
}
});
})