Skip to content

Commit

Permalink
fix(quickfilter): SKFP-1417 search match issue (#4195)
Browse files Browse the repository at this point in the history
  • Loading branch information
AltefrohneGaelle authored Jan 7, 2025
1 parent 487568c commit c62e295
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/views/DataExploration/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ const DataExploration = () => {
const label = capitalize(facetValueMapping?.[bucket.key]) || titleCase(bucket.key);
const index = getIndexFromQFValueFacet(key);

if (regexp.exec(label)) {
if (label.match(regexp)) {
++totalResult;
bucketFiltered.push({
key: bucket.key,
Expand All @@ -340,7 +340,7 @@ const DataExploration = () => {
}
});

const isFacetNameMatch = regexp.exec(facetName);
const isFacetNameMatch = facetName.match(regexp);
if (isFacetNameMatch || bucketFiltered.length > 0) {
if (isFacetNameMatch) ++totalResult;

Expand Down

0 comments on commit c62e295

Please sign in to comment.