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

Fixed: Search functionality for facility groups page (#285). #286

Closed
wants to merge 3 commits into from

Conversation

Ridwan6947
Copy link
Contributor

Related Issues

#285

Short Description and Why It's Useful

Fixed state management for facility group page , added a check in catch

Screenshots of Visual Changes before/after (If There Are Any)

Screenshot from 2024-07-15 18-20-40
Screenshot from 2024-07-15 18-20-47

Contribution and Currently Important Rules Acceptance

…ll is successful , if no result found facility group state is made empty and total count 0 , for unsuccessfl API call previous state is set (hotwax#285)
@Ridwan6947 Ridwan6947 changed the title Fixed: made changes such that , state only gets updated if the API call is successful , if no result found facility group state is made empty and total count 0 , for unsuccessful API call previous state is set (#285) Fixed: Search functionality for facility groups page. Jul 15, 2024
@Ridwan6947 Ridwan6947 changed the title Fixed: Search functionality for facility groups page. Fixed: Search functionality for facility groups page ("#285"). Jul 15, 2024
@Ridwan6947 Ridwan6947 changed the title Fixed: Search functionality for facility groups page ("#285"). Fixed: Search functionality for facility groups page (#285). Jul 15, 2024
Comment on lines +699 to +700
let groups = JSON.parse(JSON.stringify(state.facilityGroups.list));
let total = 0;
Copy link
Contributor

Choose a reason for hiding this comment

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

Why we have made this change?

groups = resp.data.docs
}
if (!hasError(resp) && resp.data.count > 0) {
if (payload.viewIndex && payload.viewIndex > 0) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Improve indentation

@Ridwan6947 Ridwan6947 requested a review from ymaheshwari1 July 17, 2024 11:20
@ymaheshwari1
Copy link
Contributor

Closing as the groups UI has been changed.

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.

2 participants