🐛 Fix selected day not handled, 💄 Show Place description in item dialog comment
This commit is contained in:
parent
c6bb75a55f
commit
f64cb1c8cc
@ -101,7 +101,7 @@ export class TripCreateDayItemModalComponent {
|
||||
});
|
||||
|
||||
if (data.selectedDay)
|
||||
this.itemForm.get("day_id")?.setValue(data.selectedDay);
|
||||
this.itemForm.get("day_id")?.setValue([data.selectedDay]);
|
||||
}
|
||||
|
||||
this.itemForm
|
||||
@ -122,6 +122,8 @@ export class TripCreateDayItemModalComponent {
|
||||
this.itemForm.get("price")?.setValue(p.price || 0);
|
||||
if (!this.itemForm.get("text")?.value)
|
||||
this.itemForm.get("text")?.setValue(p.name);
|
||||
if (p.description && !this.itemForm.get("comment")?.value)
|
||||
this.itemForm.get("comment")?.setValue(p.description);
|
||||
}
|
||||
},
|
||||
});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user