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

fix: Glass form was not accessable if the glass had no image #189

Merged

Conversation

jo-gross
Copy link
Owner

@jo-gross jo-gross commented Mar 4, 2024

Closing issues:

Before you mark this PR as ready, please check the following points

Put an x in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of
them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before
merging your code.

  • I´e created all necessary migrations?
  • The format is correct (yarn format:check, if invalid yarn format:fix)
  • No build errors (yarn build)
  • I´ve tested the implemented function by my own
  • Ensure the pr title fits the conventional commit standard

Describe your work, what changed

If an glass had no image, the field "GlassImages" is undefined. So the access on that undefined throwes an exception.

Affected sites (please check during review):

  • Glass form editing a glass without an image

Signed-off-by: Johannes Groß <mail@gross-johannes.de>
@jo-gross jo-gross requested review from jhns-de and devarnonym March 4, 2024 13:19
@jo-gross jo-gross linked an issue Mar 4, 2024 that may be closed by this pull request
1 task
@jo-gross jo-gross changed the title fix: not allowed undefined prop access fix: Glass form was not accessable if the glass had no image set Mar 4, 2024
@jo-gross jo-gross changed the title fix: Glass form was not accessable if the glass had no image set fix: Glass form was not accessable if the glass had no image Mar 4, 2024
@jo-gross jo-gross merged commit 96cc360 into main Mar 4, 2024
3 checks passed
@jo-gross jo-gross deleted the 186-bug-editing-an-glass-without-an-image-throws-an-exception branch March 4, 2024 15:56
jg-semantic-release-bot bot pushed a commit that referenced this pull request Mar 4, 2024
## [1.4.1](v1.4.0...v1.4.1) (2024-03-04)

### Bug Fixes

* Cocktail forms calculation was not shown properly, changed volume validation at ingredients form ([#188](#188)) ([f3ef485](f3ef485))
* Fixed chrome ui bug (icon was not correctly displayed) ([#191](#191)) ([1a669bd](1a669bd))
* Glass form was not accessable if the glass had no image ([#189](#189)) ([96cc360](96cc360))
@jg-semantic-release-bot
Copy link

🎉 This PR is included in version 1.4.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

bug: Editing an glass without an image throws an exception
2 participants