-
Notifications
You must be signed in to change notification settings - Fork 24
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-18238] incorrect criteria when saving list with follow up false #3868
fix: [DHIS2-18238] incorrect criteria when saving list with follow up false #3868
Conversation
@@ -55,7 +55,7 @@ export const addTEITemplateEpic = (action$: InputObservable, store: ReduxStore, | |||
...(assignedUserMode && { assignedUserMode }), | |||
...(assignedUsers?.length > 0 && { assignedUsers }), | |||
...(programStatus && { enrollmentStatus: programStatus }), | |||
...(!!followUp && { followUp }), | |||
...(followUp !== undefined && { followUp: JSON.stringify(followUp) }), |
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.
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'm very glad you know this logic better than me! Good catch 😄
🚀 Deployed on https://deploy-preview-3868.capture.netlify.dhis2.org |
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.2,2.40,6,2.39.8 versions
🎉 This PR is included in version 101.14.5 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
Summary:
When creating a list with followUp explicitly marked as
false
, this got filtered out before it was sent to the API.I also took the opportunity to add some ButtonStrips when already editing these files. I think it makes the UI look a bit cleaner.