소스 검색

bug fix

master
Daniel 1 년 전
부모
커밋
d1965d8ffc
1개의 변경된 파일6개의 추가작업 그리고 5개의 파일을 삭제
  1. +6
    -5
      angular/src/app/_views/trip/trip-detail/trip-detail.component.ts

+ 6
- 5
angular/src/app/_views/trip/trip-detail/trip-detail.component.ts 파일 보기

@@ -219,18 +219,19 @@ export class TripDetailComponent implements OnInit, AfterViewInit {
}

addNewUserTrip() {
// Create a new empty user trip with an empty user object as a placeholder
const newUserTrip: UserTripJsonld = {
// Erstelle ein unvollständiges Objekt (ohne user-Property)
const newUserTrip: any = {
trip: {
'id': this.trip.id
} as TripJsonld,
user: {} as UserJsonld // Empty user object as placeholder
user: null
};

this.userTrips.push(newUserTrip);
// Füge es als UserTripJsonld hinzu
this.userTrips.push(newUserTrip as UserTripJsonld);
this.userForms.push(this.createUserForm());

// Force update in the next event loop to properly initialize the search-select
// Rest unverändert...
setTimeout(() => {
if (this.searchSelects) {
const lastSelect = this.searchSelects.last;


불러오는 중...
취소
저장