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

Shifting Form: Initial value from last daily round's category otherwise last consultation's category has no effect #5951

Closed
1 task done
rithviknishad opened this issue Jul 27, 2023 · 1 comment
Assignees

Comments

@rithviknishad
Copy link
Member

rithviknishad commented Jul 27, 2023

Whenever a daily round is created, the last_consultation.category is updated too automatically in the backend.

  • Remove unnecessary fallback for the default value

const patient_category =
res.data.last_consultation?.last_daily_round?.patient_category ??
res.data.last_consultation?.category;

const patient_category =
d.patient.last_consultation?.last_daily_round?.patient_category ??
d.patient.last_consultation?.category;

@rithviknishad
Copy link
Member Author

Closing in favour of #5990

@rithviknishad rithviknishad closed this as not planned Won't fix, can't repro, duplicate, stale Aug 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
1 participant