Explain why empty form arrays are not included in this.formGroupValues
#174
Labels
released on @feat-rewrite
state: has PR
A PR is available for that issue
type: bug/fix
This is a bug or at least needs a fix
ngx-sub-form/projects/ngx-sub-form/src/lib/ngx-sub-form.component.ts
Line 172 in 6a39e4a
It's not difficult to work around, but could someone please provide some insight as to why an empty FormArray is not included in
this.formGroupValues
? I would expect it to return an empty array. Now, wherever need to work with these items, I have to write it like this:(this.formGroupValues.myArray || []).filter(...)
If there's a good reason for it, I would like to know what it is.
This package is awesome. Thank you
The text was updated successfully, but these errors were encountered: