Release Bugfixes (#2470)
This commit is contained in:
parent
d796d06fd1
commit
bdcd3965fd
14 changed files with 194 additions and 25 deletions
|
|
@ -68,7 +68,12 @@ export class EditListComponent implements OnInit {
|
|||
const tokenToRemove = tokens[index];
|
||||
|
||||
this.combinedItems = tokens.filter(t => t != tokenToRemove).join(',');
|
||||
this.form.removeControl('link' + index, {emitEvent: true});
|
||||
for (const [index, [key, value]] of Object.entries(Object.entries(this.form.controls))) {
|
||||
if (key.startsWith('link') && this.form.get(key)?.value === tokenToRemove) {
|
||||
this.form.removeControl('link' + index, {emitEvent: true});
|
||||
}
|
||||
}
|
||||
|
||||
this.emit();
|
||||
this.cdRef.markForCheck();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue