diff --git a/src/app/company/company-reservations/company-reservations.component.html b/src/app/company/company-reservations/company-reservations.component.html index 594c08b..221170a 100644 --- a/src/app/company/company-reservations/company-reservations.component.html +++ b/src/app/company/company-reservations/company-reservations.component.html @@ -95,7 +95,7 @@
Lunch Talks
--> -
+
diff --git a/src/app/company/company-reservations/company-reservations.component.ts b/src/app/company/company-reservations/company-reservations.component.ts index b4693a4..1064b16 100644 --- a/src/app/company/company-reservations/company-reservations.component.ts +++ b/src/app/company/company-reservations/company-reservations.component.ts @@ -171,6 +171,9 @@ export class CompanyReservationsComponent implements OnInit, OnDestroy { if (this.latestReservation.activities === undefined) { this.latestReservation.activities = []; } + + // FIXME: This is a workaround, imo we should be using dictionaries to store activities + this.latestReservation.activities = this.latestReservation.activities.filter(act => act.kind !== kind); this.latestReservation.activities.push(new Activity(id, kind)); this.reservationService.setReservation(this.latestReservation);