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) O3-3787 : Refresh workspace title when clicked on new patient #1341

Merged
merged 2 commits into from
Oct 11, 2024

Conversation

kb019
Copy link
Contributor

@kb019 kb019 commented Oct 11, 2024

Requirements

  • This PR has a title that briefly describes the work done including the ticket number. If there is a ticket, make sure your PR title includes a conventional commit label. See existing PR titles for inspiration.
  • My work conforms to the OpenMRS 3.0 Styleguide and design documentation.
  • My work includes tests or is validated by existing tests.

Summary

I have mentioned detailed solution in this PR. For now this might be like a temporary solution.
The workspace title which was set dynamically does not updated when clicked on other patients.Putting the props which are passed to the title node as a dependency in useEffect works.
OpenMRS - Personal - Microsoft_ Edge 2024-10-10 21-26-09.webm

Related Issue

https://openmrs.atlassian.net/browse/O3-3787

Copy link
Contributor

@chibongho chibongho left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wow, that's it? Nice work!

@chibongho chibongho merged commit 210df65 into openmrs:main Oct 11, 2024
6 checks passed
@kb019
Copy link
Contributor Author

kb019 commented Oct 11, 2024

Wow, that's it? Nice work!

Thanks @chibongho .

@brandones
Copy link
Contributor

I think this is the correct way to solve the problem.

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

Successfully merging this pull request may close these issues.

4 participants