Skip to content

Commit

Permalink
Merge branch 'hlxsites:main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
davenichols-DHLS authored Nov 15, 2023
2 parents 70a277f + 943f35d commit b14e1f1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions blocks/category-family/category-family.js
Original file line number Diff line number Diff line change
Expand Up @@ -208,8 +208,8 @@ export default async function decorate(block) {
engine.subscribe(() => {
const totalCount = engine?.state?.search?.response?.totalCount;
if (totalCount !== undefined && totalCount === 0
&& document.querySelector('div.coveocategory') !== null) {
document.querySelector('div.coveocategory').remove();
&& document.querySelector('div.category-family-container') !== null) {
document.querySelector('div.category-family-container').remove();
}
});
}

0 comments on commit b14e1f1

Please sign in to comment.