Client: fix friend add input control when removing an input

pull/10/head
Chocobozzz 2016-08-23 18:09:21 +02:00
parent 327680c984
commit f84a89f0e7
1 changed files with 2 additions and 0 deletions

View File

@ -56,6 +56,8 @@ export class FriendAddComponent implements OnInit {
} }
removeField(index: number) { removeField(index: number) {
// Remove the last control
this.friendAddForm.removeControl(`url-${this.urls.length - 1}`);
this.urls.splice(index, 1); this.urls.splice(index, 1);
} }