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

Implemented: Bulk API calls to add facility to group and to update facility to group on Manage Facilities page.(#339) #345

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

priyanshee1604
Copy link
Contributor

@priyanshee1604 priyanshee1604 commented Feb 4, 2025

Related Issues

#339

Short Description and Why It's Useful

Contribution and Currently Important Rules Acceptance

}))
)
try{
const removeResponses = await FacilityService.updateFacilitiesToGroup({
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
const removeResponses = await FacilityService.updateFacilitiesToGroup({
const removeResponse = await FacilityService.updateFacilitiesToGroup({

"facilityGroupId": this.facilityGroupId,
"facilityId": facility.facilityId,
"sequenceNum": facility.sequenceNum
}))
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

Copy link
Contributor

Choose a reason for hiding this comment

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

We should add a check to not make this api calls if there are no facilities to add/remove.

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