Skip to content

Commit

Permalink
IIIF Cloud #28 - Fixing an issue with search in dropdowns
Browse files Browse the repository at this point in the history
  • Loading branch information
dleadbetter committed Apr 4, 2023
1 parent 32bf9e5 commit 1fbcd22
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion client/src/components/OrganizationModal.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const OrganizationModal: ComponentType<any> = withTranslation()((props) => (
>
<AssociatedDropdown
collectionName='organizations'
onSearch={(params) => OrganizationsService.fetchAll(params)}
onSearch={(search) => OrganizationsService.fetchAll({ search })}
onSelection={props.onAssociationInputChange.bind(this, 'organization_id', 'organization')}
renderOption={(organization) => Organization.toDropdown(organization)}
searchQuery={props.item.organization && props.item.organization.name}
Expand Down
2 changes: 1 addition & 1 deletion client/src/components/UserModal.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const UserModal: ComponentType<any> = withTranslation()((props) => (
>
<AssociatedDropdown
collectionName='users'
onSearch={(params) => UsersService.fetchAll(params)}
onSearch={(search) => UsersService.fetchAll({ search })}
onSelection={props.onAssociationInputChange.bind(this, 'user_id', 'user')}
renderOption={(user) => User.toDropdown(user)}
searchQuery={props.item.user && props.item.user.name}
Expand Down
2 changes: 1 addition & 1 deletion client/src/pages/Project.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ const ProjectForm = withTranslation()((props) => {
>
<AssociatedDropdown
collectionName='organizations'
onSearch={(params) => OrganizationsService.fetchAll(params)}
onSearch={(search) => OrganizationsService.fetchAll({ search })}
onSelection={props.onAssociationInputChange.bind(this, 'organization_id', 'organization')}
renderOption={(organization) => Organization.toDropdown(organization)}
searchQuery={props.item.organization && props.item.organization.name}
Expand Down

0 comments on commit 1fbcd22

Please sign in to comment.