0👍
It can’t find the property cnjp
in the item.documents
object, so it throws an error. To get rid of that error you can do
item.documents?.cnpj
so if the property is not in the object, if will be null instead of throwing an error.
Source:stackexchange.com