Skip to content

Commit

Permalink
Fix typeahead glitch (#314)
Browse files Browse the repository at this point in the history
  • Loading branch information
xjunior authored May 14, 2024
1 parent 3a817a9 commit 00d1c6a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
1 change: 1 addition & 0 deletions audiences-react/docs/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Unreleased

- Fix typeahead glitch [#314](https://github.com/powerhome/audiences/pull/314)
- Wrap SCIM resource typeahead search as a string [#308](https://github.com/powerhome/audiences/pull/308)

# Version 1.0.2 (2024-04-30)
Expand Down
8 changes: 2 additions & 6 deletions audiences-react/src/AudienceForm/ScimResourceTypeahead.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,8 @@ export function ScimResourceTypeahead({
search: string,
callback: (options: PlaybookOption[]) => void,
) => {
if (search.length > 2) {
const options = await filter<ScimObject>(resourceId, search)
callback(playbookOptions(options))
} else {
callback([])
}
const options = await filter<ScimObject>(resourceId, search)
callback(playbookOptions(options))
}

return (
Expand Down
1 change: 1 addition & 0 deletions audiences/docs/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Unreleased

- Fix PostgreSQL compability [#312](https://github.com/powerhome/audiences/pull/312)
- Fix audiences resources pagination [#313](https://github.com/powerhome/audiences/pull/313)

# Version 1.0.2 (2024-04-30)

Expand Down

0 comments on commit 00d1c6a

Please sign in to comment.