Skip to content

Commit

Permalink
Merge pull request #30 from Josmar-jr/fix/show-more-25-options-at-org…
Browse files Browse the repository at this point in the history
…anizations-auto-complete

Fix/show more 25 options at organizations auto complete
  • Loading branch information
ataideverton authored Aug 22, 2024
2 parents 7c9d7a1 + 0f92ba7 commit 7390783
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.

## [Unreleased]

### Fixed
- shows more options in the cost centers dropdown

### Removed
- [ENGINEERS-1247] - Disable cypress tests in PR level

Expand Down
4 changes: 2 additions & 2 deletions react/components/OrganizationsAutocomplete.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const initialState = {
status: ['active', 'on-hold', 'inactive'],
search: '',
page: 1,
pageSize: 25,
pageSize: 500,
sortOrder: 'ASC',
sortedBy: 'name',
}
Expand Down Expand Up @@ -78,7 +78,7 @@ const OrganizationsAutocomplete = ({ onChange, organizationId }: Props) => {
}, [data])

useEffect(() => {
if (term && term.length > 2) {
if (term && term.length > 1) {
setHasChanged(true)
refetch({
...initialState,
Expand Down

0 comments on commit 7390783

Please sign in to comment.