Skip to content

Commit

Permalink
Fixed partial error
Browse files Browse the repository at this point in the history
  • Loading branch information
FabianGosebrink committed Sep 17, 2023
1 parent 42b52cf commit 9d9bea4
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export class FoodComponent {
@Input() foodItems = [];
@Input() connectionEstablished = false;

@Output() foodSaved = new EventEmitter<Partial<FoodItem>>();
@Output() foodSaved = new EventEmitter<FoodItem>();
@Output() foodDeleted = new EventEmitter<FoodItem>();

form = this.formbuilder.group({
Expand All @@ -24,7 +24,7 @@ export class FoodComponent {
});

saveFood() {
this.foodSaved.emit(this.form.value);
this.foodSaved.emit(this.form.value as FoodItem);
this.form.reset();
}

Expand Down

0 comments on commit 9d9bea4

Please sign in to comment.