aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--client/src/app/admin/friends/friend-add/friend-add.component.ts2
1 files changed, 2 insertions, 0 deletions
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 {
56 } 56 }
57 57
58 removeField(index: number) { 58 removeField(index: number) {
59 // Remove the last control
60 this.friendAddForm.removeControl(`url-${this.urls.length - 1}`);
59 this.urls.splice(index, 1); 61 this.urls.splice(index, 1);
60 } 62 }
61 63