Skip to content

Commit

Permalink
fix(quickfilter): SJIP-1118 fix first level icon
Browse files Browse the repository at this point in the history
  • Loading branch information
lflangis committed Nov 29, 2024
1 parent b1d917b commit 1ea81f7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/views/DataExploration/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,7 @@ const DataExploration = () => {

if (regexp.exec(label)) {
++totalResult;

bucketFiltered.push({
key: bucket.key,
label,
Expand All @@ -313,7 +314,10 @@ const DataExploration = () => {
label: facetName,
type: 'title',
index: getIndexFromQFValueFacet(key),
categoryIcon: <UserOutlined className={styles.categoryIcon} />,
categoryIcon:
bucketFiltered.length > 0 ? (
<UserOutlined className={styles.categoryIcon} />
) : undefined,
});
suggestions.push(...bucketFiltered);
}
Expand Down

0 comments on commit 1ea81f7

Please sign in to comment.