New answers tagged

0 votes

Evaluating multiple record criteria in a loop

I'd define some intermediate variables and then evaluate them outside of the loop. Something like this: let started = false; let next = false; let complete = false; //should be able to use a forEach ...
2 votes

LWC get field value from @wire result (single object) from apex query

As you can see from the console log, data holds both Id and Name, it doesn't hold a MyObject__c object, so you should just assign data to this.record: if (data) { console.log("in @wire " ...
  • 5,639

Top 50 recent answers are included