Skip to content

Commit 076501c

Browse files
leonardomendixIIsaku
authored andcommitted
Fix unwanted enum name match when there is no enum caption match
1 parent 0f0e321 commit 076501c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/TextBoxSearch/components/TextBoxSearchContainer.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ export default class SearchContainer extends Component<ContainerProps, Container
137137
attribute: search.attribute,
138138
operator: "contains",
139139
path: this.props.entity,
140-
value: searchQuery
140+
value: " "
141141
});
142142
}
143143
} else {
@@ -164,7 +164,7 @@ export default class SearchContainer extends Component<ContainerProps, Container
164164
if (enumCaptionMatches.length > 0) {
165165
enumCaptionMatches.forEach(match => constraints.push(`${searchAttribute.attribute}='${match}'`));
166166
} else {
167-
constraints.push(`contains(${searchAttribute.attribute},'${searchQuery}')`);
167+
constraints.push(`contains(${searchAttribute.attribute}," ")`);
168168
}
169169
} else {
170170
constraints.push(`contains(${searchAttribute.attribute},'${searchQuery}')`);

0 commit comments

Comments
 (0)