I created an auto-fill form that populates data based on ng-select information automatically. However, I am encountering an issue when attempting to delete selected data as it is throwing a Cannot read property 'pincode' of null error. Any help in resolving this bug would be greatly appreciated. Below is the code snippet. Thanks in advance.
- register-component.html
<div class="wrapper">
<div class="main_content">
...
</div>
- register-page.component.ts
import { Component, OnInit } from '@angular/core';
...
https://i.sstatic.net/rqzIp.png
Whenever I click on the cross to input new data, I encounter these two errors.