When an empty location is transmitted from FamLink to Sprout ("visitLocations" from "ServiceReferrals" = [{}]), users can not enter visit location information #233
Describe the bug
Users can't enter visit location information for visit reports on referrals that are transmitted from FamLink to Sprout (when "visitLocations" from "ServiceReferrals" = [{}]). This prohibits the user(s) from completing and submitting a visit report.
To Reproduce
Steps to reproduce the behavior:
Issue originates in FamLink when a social worker does not include a location information in a referral.
Expected behavior
Sprout users creating visit reports should be able to enter visit location information and when they can not, they are unable to complete and submit visit reports. They only see blank lines and "Other" listed in Visit Location section of visit report.
Screenshots
See attached for example of what users see when the bug has occurred.
Desktop (please complete the following information):
OS: [e.g. iOS]
Browser [e.g. chrome, safari]
Version [e.g. 22]
Smartphone (please complete the following information):
Device: [e.g. iPhone6]
OS: [e.g. iOS8.1]
Browser [e.g. stock browser, safari]
Version [e.g. 22]
Additional context
Add any other context about the problem here.
Describe the bug Users can't enter visit location information for visit reports on referrals that are transmitted from FamLink to Sprout (when "visitLocations" from "ServiceReferrals" = [{}]). This prohibits the user(s) from completing and submitting a visit report.
To Reproduce Steps to reproduce the behavior:
Expected behavior Sprout users creating visit reports should be able to enter visit location information and when they can not, they are unable to complete and submit visit reports. They only see blank lines and "Other" listed in Visit Location section of visit report.
Screenshots See attached for example of what users see when the bug has occurred.![missing location info](https://github.com/cssat/sprout-issues/assets/147194389/97d15310-83d2-49bb-b402-86eddb687cc3)
Desktop (please complete the following information):
Smartphone (please complete the following information):
Additional context Add any other context about the problem here.