From 00d1c6ab8372dc40a185494b5673a07a06ff2465 Mon Sep 17 00:00:00 2001 From: Carlos Palhares Date: Tue, 14 May 2024 17:44:54 -0300 Subject: [PATCH] Fix typeahead glitch (#314) --- audiences-react/docs/CHANGELOG.md | 1 + .../src/AudienceForm/ScimResourceTypeahead.tsx | 8 ++------ audiences/docs/CHANGELOG.md | 1 + 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/audiences-react/docs/CHANGELOG.md b/audiences-react/docs/CHANGELOG.md index b8b82869..c48bc1bf 100644 --- a/audiences-react/docs/CHANGELOG.md +++ b/audiences-react/docs/CHANGELOG.md @@ -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) diff --git a/audiences-react/src/AudienceForm/ScimResourceTypeahead.tsx b/audiences-react/src/AudienceForm/ScimResourceTypeahead.tsx index b33ad90f..7b7bf549 100644 --- a/audiences-react/src/AudienceForm/ScimResourceTypeahead.tsx +++ b/audiences-react/src/AudienceForm/ScimResourceTypeahead.tsx @@ -43,12 +43,8 @@ export function ScimResourceTypeahead({ search: string, callback: (options: PlaybookOption[]) => void, ) => { - if (search.length > 2) { - const options = await filter(resourceId, search) - callback(playbookOptions(options)) - } else { - callback([]) - } + const options = await filter(resourceId, search) + callback(playbookOptions(options)) } return ( diff --git a/audiences/docs/CHANGELOG.md b/audiences/docs/CHANGELOG.md index 71ca1371..956731b8 100644 --- a/audiences/docs/CHANGELOG.md +++ b/audiences/docs/CHANGELOG.md @@ -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)