I get this error upon sending a request with my async function. I also tried passing in finalDescription into the async function, but no luck.
My application.js
@tracked finalDescription;
@action getDescription(description){
this.finalDescription = description;
}
@action async sendRequest() {
const cron_minutes = finalSchedule[tag].toString();
if (finalDescription[colour].length) {
mystring = mystring + "/" + finalDescription[colour].toString();
}
...
and description looks like this
description = {
colour: [1,2],
tag: [32,34,36],
era: ["modern"],
}
Aucun commentaire:
Enregistrer un commentaire