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 facility creation error handling #3481

Merged
merged 1 commit into from
Sep 1, 2022

Conversation

Ashesh3
Copy link
Member

@Ashesh3 Ashesh3 commented Aug 26, 2022

Fixes #3390

This PR adds a check for res.data existence before accessing it, this fixes the infinite loading crash when the said property was accessed even though it did not exist.

image

@Ashesh3 Ashesh3 requested a review from a team August 26, 2022 14:49
@Ashesh3 Ashesh3 requested a review from a team as a code owner August 26, 2022 14:49
@netlify
Copy link

netlify bot commented Aug 26, 2022

Deploy Preview for care-egov-staging ready!

Name Link
🔨 Latest commit 51d1dc6
🔍 Latest deploy log https://app.netlify.com/sites/care-egov-staging/deploys/6308dd983b807600088b7703
😎 Deploy Preview https://deploy-preview-3481--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 settings.

@sonarcloud
Copy link

sonarcloud bot commented Aug 26, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.5% 0.5% Duplication

Copy link
Contributor

@ishanExtreme ishanExtreme left a comment

Choose a reason for hiding this comment

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

LGTM

@nihal467
Copy link
Member

@khavinshankar can you test it

@nihal467 nihal467 added the question Further information is requested label Aug 30, 2022
@nihal467
Copy link
Member

test approved

@nihal467 nihal467 added tested and removed needs testing question Further information is requested labels Aug 31, 2022
@khavinshankar khavinshankar merged commit 21430ff into ohcnetwork:develop Sep 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Create Facility Page is stuck at loading
5 participants