Polish 4 (#3577)
Co-authored-by: Zeoic <zeorgaming@gmail.com> Co-authored-by: Fesaa <77553571+Fesaa@users.noreply.github.com>
This commit is contained in:
parent
b38400c092
commit
0ffe0228e5
30 changed files with 339 additions and 115 deletions
|
|
@ -83,6 +83,11 @@ export class EditListComponent implements OnInit {
|
|||
.map(key => this.form.get(key)?.value)
|
||||
.join(',');
|
||||
|
||||
// Recreate form to ensure index's match
|
||||
this.form = new FormGroup({});
|
||||
this.Items.forEach((item, index) => {
|
||||
this.form.addControl('link' + index, new FormControl(item, []));
|
||||
})
|
||||
|
||||
this.emit();
|
||||
this.cdRef.markForCheck();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue