We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c6bb75a commit f64cb1cCopy full SHA for f64cb1c
src/src/app/modals/trip-create-day-item-modal/trip-create-day-item-modal.component.ts
@@ -101,7 +101,7 @@ export class TripCreateDayItemModalComponent {
101
});
102
103
if (data.selectedDay)
104
- this.itemForm.get("day_id")?.setValue(data.selectedDay);
+ this.itemForm.get("day_id")?.setValue([data.selectedDay]);
105
}
106
107
this.itemForm
@@ -122,6 +122,8 @@ export class TripCreateDayItemModalComponent {
122
this.itemForm.get("price")?.setValue(p.price || 0);
123
if (!this.itemForm.get("text")?.value)
124
this.itemForm.get("text")?.setValue(p.name);
125
+ if (p.description && !this.itemForm.get("comment")?.value)
126
+ this.itemForm.get("comment")?.setValue(p.description);
127
128
},
129
0 commit comments