Hey everyone, I'm currently working on a project that uses a Model driven form. When I submit the form, I am encountering an issue where I get null values in my formGroupObj.value. I need to find a way to remove fields with null values.
Here is how the current output looks:
{
"firstName":"Jack",
"lastName":"M",
"age":null
}
What I'm expecting as output is:
{
"firstName":"Jack",
"lastName":"M"
}
Does anyone know of a default way to achieve this desired output?
I would really appreciate any help on this issue. Thank you!