Skip to content

Commit

Permalink
Default the event organization to an empty string instead of Unknown.
Browse files Browse the repository at this point in the history
  • Loading branch information
ocielliottc committed Jan 8, 2025
1 parent 244fc81 commit ac12385
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web-ui/src/components/volunteer/VolunteerEvents.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ const VolunteerEvents = ({ forceUpdate = () => {}, onlyMe = false }) => {
<Autocomplete
disableClearable
getOptionLabel={(option) =>
option === 'new' ? 'Create a New Organization' : (relationshipMap[option]?.organizationId && organizationMap[relationshipMap[option].organizationId]?.name) || 'Unknown'
option === 'new' ? 'Create a New Organization' : (relationshipMap[option]?.organizationId && organizationMap[relationshipMap[option].organizationId]?.name) || ''
}
options={['new', ...relationships.filter((rel) => !rel.endDate).map((rel) => rel.id)]} // Use relationship IDs
onChange={(event, value) => {
Expand Down

0 comments on commit ac12385

Please sign in to comment.