diff --git a/client/src/app/admin/friends/friend-add/friend-add.component.ts b/client/src/app/admin/friends/friend-add/friend-add.component.ts index 16cfd8a3a..2b2aceb8a 100644 --- a/client/src/app/admin/friends/friend-add/friend-add.component.ts +++ b/client/src/app/admin/friends/friend-add/friend-add.component.ts @@ -56,6 +56,8 @@ export class FriendAddComponent implements OnInit { } removeField(index: number) { + // Remove the last control + this.friendAddForm.removeControl(`url-${this.urls.length - 1}`); this.urls.splice(index, 1); }