-
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-15782] navigation with program stage filter #3431
Conversation
🚀 Deployed on https://deploy-preview-3431--dhis2-capture.netlify.app |
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!
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.41,2.40.2,2.39.4 versions
## [100.41.3](v100.41.2...v100.41.3) (2023-10-16) ### Bug Fixes * [DHIS2-15782] navigation with program stage filter ([#3431](#3431)) ([8f7a017](8f7a017))
🎉 This PR is included in version 100.41.3 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
## [100.41.3](v100.41.2...v100.41.3) (2023-10-16) ### Bug Fixes * [DHIS2-15782] navigation with program stage filter ([#3431](#3431)) ([8f7a017](8f7a017))
## [100.41.3](v100.41.2...v100.41.3) (2023-10-16) ### Bug Fixes * [DHIS2-15782] navigation with program stage filter ([#3431](#3431)) ([8f7a017](8f7a017))
DHIS2-15782
Tech summary
Ensure that the hook is only fired when navigating from the search page to the main page with a different WL selected. I added checks for:
selectedTemplateId !== currentTemplateId
- check if a different working list has been selected by comparing selectedTemplateId (the value of the URL parameter) with currentTemplateId (which comes from redux store workingListsTemplates.selectedTemplateId)!viewPreloaded
- used to discard the case when currentTemplateId is auuid()
while saving a new WL