Skip to content

Commit

Permalink
fix: make checkbox badge with values work again (without fetching the…
Browse files Browse the repository at this point in the history
… tags all the time) (#5193)

* Fix checkbox badge with values not working

* Update packages/faceted-search/src/components/Badges/BadgeCheckboxes/BadgeCheckboxes.component.js

Co-authored-by: Alexandre Amalric <[email protected]>

---------

Co-authored-by: Alexandre Amalric <[email protected]>
  • Loading branch information
romainseb and aamalric-talend authored Feb 19, 2024
1 parent 420118f commit 5cd9cde
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/thin-nails-search.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@talend/react-faceted-search': patch
---

fix: make checkbox badge with values work again (without fetching the tags all the time)
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export const BadgeCheckboxes = ({
const [isLoading, setIsLoading] = useState(true);

useEffect(() => {
if (!callbacks || !callbacks.getTags) {
if (values?.length || !callbacks || !callbacks.getTags) {
setIsLoading(false);
return;
}
Expand Down

0 comments on commit 5cd9cde

Please sign in to comment.