diff --git a/src/app/hotel/edit-hotel.component.ts b/src/app/hotel/edit-hotel.component.ts index 45e5e01..c19f70b 100644 --- a/src/app/hotel/edit-hotel.component.ts +++ b/src/app/hotel/edit-hotel.component.ts @@ -46,11 +46,10 @@ import {TagComponent} from "./tag.component";
- @for (tag of getTags().controls; track null) { -
- - - } +
+ + +


@@ -76,6 +75,7 @@ export class EditHotelComponent implements OnInit { tags.push(new FormControl(tag, [Validators.required])); } + console.log(tags) this.form = new FormGroup({ name: new FormControl(this.hotel?.hotelName, [Validators.required]), description: new FormControl(this.hotel?.description, [Validators.required]),