We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d8afe03 commit a01fb7dCopy full SHA for a01fb7d
client/src/components/forms/LocationSelect.tsx
@@ -18,7 +18,7 @@ export const LocationSelect = ({
18
const { locationService } = useApi();
19
const { data: locations = [] } = locationService.useLocations() ?? {};
20
21
- const options = locations.map(
+ const options = locations?.map(
22
(location: { _id: string; hubName: string }) => ({
23
value: location._id,
24
label: location.hubName
0 commit comments