Skip to content
Snippets Groups Projects
Commit 09117de7 authored by Florian Azizian's avatar Florian Azizian
Browse files

FEAT #12091 TIME 0:10 load default tags

parent 7cda51b3
No related branches found
No related tags found
No related merge requests found
...@@ -104,13 +104,10 @@ export class TagInputComponent implements OnInit { ...@@ -104,13 +104,10 @@ export class TagInputComponent implements OnInit {
} }
initFormValue() { initFormValue() {
this.controlAutocomplete.value.forEach((ids: any) => { this.controlAutocomplete.value.forEach((ids: any) => {
this.http.get('../../rest/tags/' + ids).pipe( this.http.get('../../rest/tags/' + ids).pipe(
tap((data) => { tap((data: any) => {
for (var key in data) { this.valuesToDisplay[data.id] = data.label;
this.valuesToDisplay[data[key].id] = data[key].label;
}
}) })
).subscribe(); ).subscribe();
}); });
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment