react TypeError: Cannot read property 'image' of undefined code example
Example: core.js:6228 ERROR TypeError: Cannot read property 'image' of undefined
<tr ngFor="let item of typeDons">
<td>{{ item?.name }}</td> <!-- notice the question mark -->
<td>{{ item?.description }}</td>
<td>
<button type="button" >Edit</button>
<button type="button" >Delete</button>
</td>
</tr>