diff --git a/.changeset/thin-nails-search.md b/.changeset/thin-nails-search.md new file mode 100644 index 00000000000..51f52c9217d --- /dev/null +++ b/.changeset/thin-nails-search.md @@ -0,0 +1,5 @@ +--- +'@talend/react-faceted-search': patch +--- + +fix: make checkbox badge with values work again (without fetching the tags all the time) diff --git a/packages/faceted-search/src/components/Badges/BadgeCheckboxes/BadgeCheckboxes.component.js b/packages/faceted-search/src/components/Badges/BadgeCheckboxes/BadgeCheckboxes.component.js index 447a2da2e07..0f340b13267 100644 --- a/packages/faceted-search/src/components/Badges/BadgeCheckboxes/BadgeCheckboxes.component.js +++ b/packages/faceted-search/src/components/Badges/BadgeCheckboxes/BadgeCheckboxes.component.js @@ -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; }