-
Notifications
You must be signed in to change notification settings - Fork 21
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 success/Cancel url prop in fhir location form #974
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.
Also codecov seems to not run
packages/fhir-location-management/src/components/LocationForm/index.tsx
Outdated
Show resolved
Hide resolved
c1987de
to
07d71a1
Compare
Fixes problem where user edits a location, they are redirected back to the location unit list view, user immediately tries to re-edit the recently edited location, the form values were not those freshly picked from the api
Add alert when refetching tree location hierarchy
React.useEffect(() => { | ||
form.setFieldsValue({ ...initialValues }); | ||
useDeepCompareEffect(() => { | ||
form.resetFields(); |
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.
@p-netm I still feel we should show a loader as the list is re-evaluated
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.
@machariamuguku this will show a banner when the location hierarchy is being refetched: ade8d65
Codecov Report
@@ Coverage Diff @@
## master #974 +/- ##
==========================================
- Coverage 96.67% 95.78% -0.90%
==========================================
Files 288 322 +34
Lines 8911 9815 +904
Branches 1739 2037 +298
==========================================
+ Hits 8615 9401 +786
- Misses 292 409 +117
- Partials 4 5 +1
Continue to review full report at Codecov.
|
Fix success/Cancel url prop in fhir location form
close #948