mirror of https://github.com/Chocobozzz/PeerTube
Client: fix friend add input control when removing an input
parent
327680c984
commit
f84a89f0e7
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue