-
Notifications
You must be signed in to change notification settings - Fork 22
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: [DHIS2-17519] app crashing when opening new event from view event #3781
fix: [DHIS2-17519] app crashing when opening new event from view event #3781
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't quite get what caused the problem by looking through these changes; could you add a little more technical details in the description?
...re/components/DataEntries/SingleEventRegistrationEntry/SingleEventRegistrationEntry.types.js
Outdated
Show resolved
Hide resolved
...re/components/DataEntries/SingleEventRegistrationEntry/SingleEventRegistrationEntry.types.js
Outdated
Show resolved
Hide resolved
...omponents/DataEntries/SingleEventRegistrationEntry/SingleEventRegistrationEntry.component.js
Outdated
Show resolved
Hide resolved
@superskip I have updated the description of the PR. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
...omponents/DataEntries/SingleEventRegistrationEntry/SingleEventRegistrationEntry.container.js
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM :)
...omponents/DataEntries/SingleEventRegistrationEntry/SingleEventRegistrationEntry.container.js
Show resolved
Hide resolved
🚀 Deployed on https://deploy-preview-3781.capture.netlify.dhis2.org |
…shing-when-opening-new-event-from-view-event
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested successfully on 2.42,2.41.3,2.40.7,2.37.8 versions
🎉 This PR is included in version 101.16.6 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
Implements DHIS2-17519
Description:
The app crashes when attempting to open a new event from the view event screen. This issue occurs because the
useRulesEngine
hook is executed before thesingleEvent-newEvent
object is added to thedataEntriesFieldsUI
in the state.Root cause:
The app crash is triggered from the
inputHelpers.js
file, specifically on this line, where dataEntriesFieldsUI isundefined
.The fix:
Ensure that the
singleEvent-newEvent
object exist before theuseRulesEngine
hook is called.