While my coding is working fine and data is showing on the page, there seems to be an error occurring in the VSE editor. It is showing something like this:
[ts] Property 'name' does not exist on type 'any[]'.
This is a snippet of my .ts file code:
ngOnInit() {
const data = {
tailor_id: this.edit_id,
user: this.userToken
};
this.https.post<any>('api/tailor/details', data).subscribe(response => {
this.tailor = response.tailor;
this.editTailorForm.controls['name'].setValue(this.tailor.name);
this.editTailorForm.controls['phone_number'].setValue(this.tailor.phone_number);
});
}