Skip to content

Commit

Permalink
Only pass the meal ID for real meal objects
Browse files Browse the repository at this point in the history
  • Loading branch information
rolandgeider committed Jul 29, 2023
1 parent 53adb08 commit 3c72c8f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Nutrition/components/PlanDetail.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ const MealDetail = (props: { meal: Meal, planId: number }) => {
<NutritionDiaryEntryForm
closeFn={handleToggleExpandDiaryForm}
planId={props.planId}
mealId={props.meal.id} />
mealId={props.meal.id !== PSEUDO_MEAL_ID ? props.meal.id : null} />
</Collapse>
</CardContent>

Expand Down

0 comments on commit 3c72c8f

Please sign in to comment.