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

Treating physician: Fixes an edge case where clearing query leads to field getting disabled #8355

Merged

Conversation

rithviknishad
Copy link
Member

@rithviknishad rithviknishad commented Aug 19, 2024

Proposed Changes

  • Removed unintended dependency on query for the useEffect that handles the logic of whether to disable the field or not. Dependency on data.results is enough for achieving the same effect, as data.results gets updated asynchronously anyways when query changes, and hence prevents unintended triggers before event the query is executed.

@coronasafe/care-fe-code-reviewers @coronasafe/code-reviewers

Merge Checklist

  • Add specs that demonstrate bug / test a new feature.
  • Update product documentation.
  • Ensure that UI text is kept in I18n files.
  • Prep screenshot or demo video for changelog entry, and attach it to issue.
  • Request for Peer Reviews
  • Completion of QA

@rithviknishad rithviknishad requested a review from a team as a code owner August 19, 2024 16:32
Copy link

vercel bot commented Aug 19, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
care-storybook ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 19, 2024 4:34pm

Copy link

netlify bot commented Aug 19, 2024

Deploy Preview for care-egov-staging ready!

Name Link
🔨 Latest commit 7950f29
🔍 Latest deploy log https://app.netlify.com/sites/care-egov-staging/deploys/66c373d96214a90008946118
😎 Deploy Preview https://deploy-preview-8355--care-egov-staging.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

cypress bot commented Aug 19, 2024



Test summary

126 0 0 0


Run details

Project CARE
Status Passed
Commit 7950f29
Started Aug 19, 2024 4:54 PM
Ended Aug 19, 2024 5:08 PM
Duration 14:14 💡
OS Linux Ubuntu -
Browser Chrome 127

View run in Cypress Cloud ➡️


This comment has been generated by cypress-bot as a result of this project's GitHub integration settings. You can manage this integration in this project's settings in the Cypress Cloud

@nihal467
Copy link
Member

LGTM

@gigincg gigincg merged commit 9a5e833 into develop Aug 19, 2024
71 checks passed
@gigincg gigincg deleted the rithviknishad/fix/disallow-checking-on-every-query-change branch August 19, 2024 17:28
Copy link

@rithviknishad Your efforts have helped advance digital healthcare and TeleICU systems. 🚀 Thank you for taking the time out to make CARE better. We hope you continue to innovate and contribute; your impact is immense! 🙌

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

Successfully merging this pull request may close these issues.

3 participants