Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes mealie when meal plan is empty #819

Merged
merged 3 commits into from
Nov 4, 2024
Merged

Conversation

rhardih
Copy link
Contributor

@rhardih rhardih commented Oct 31, 2024

If there's nothing in the meal plan for the current day, the /api/groups/mealplans/today endpoint will simply return an [] response.

This case wasn't guarded for in the template before this fix.

Description

Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change.

Fixes # (issue)

Follow up to #721.

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Checklist:

  • I've read & comply with the contributing guidelines
  • I have tested my code for new features & regressions on both mobile & desktop devices, using the latest version of major browsers.
  • I have made corresponding changes to the documentation (README.md).
  • I've checked my modifications for any breaking changes, especially in the config.yml file

If there's nothing in the meal plan for the current day, the
/api/groups/mealplans/today endpoint will simply return an `[]`
response.

This case wasn't guarded for in the template before this fix.
Copy link
Owner

@bastienwirtz bastienwirtz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch @rhardih! Thanks 🙏

src/components/services/Mealie.vue Outdated Show resolved Hide resolved
rhardih and others added 2 commits November 4, 2024 19:59
@rhardih
Copy link
Contributor Author

rhardih commented Nov 4, 2024

@bastienwirtz I've moved the texts to be computed properties as well now. 👍

@bastienwirtz
Copy link
Owner

Thank you @rhardih !

@bastienwirtz bastienwirtz merged commit 1ca9a4b into bastienwirtz:main Nov 4, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants