Skip to content
Advertisement

Tag: lwc

How to remove empty object in array?

I am trying to remove the empty object {} from the below structure. This is my JavaScript code where I process the data and trying to remove the empty object from the result. I tried checking null and undefined and also with property check bool as false. Since the empty {} is always returning length as 1, that is also

Is there a way to pass multiple (and different) parameters to an Apex Controller class from JS in Lightning Web Components (LWC)?

I’m currently stuck at a problem and was hoping someone here could help me. I also certainly hope this is the right place to ask it. I’m trying to create a custom Invoice record with its corresponding Invoice Line records upon firing an event. I already have some logic in place to gather ID of selected rows in the JS.

Advertisement