Skip to content

Commit

Permalink
review feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
nreese committed Nov 30, 2020
1 parent bc4c3d6 commit ca1c0bb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ export class IndexPatternsService {
const savedObjects = await this.savedObjectsClient.find<IndexPatternSavedObjectAttrs>({
type: 'index-pattern',
fields: ['title'],
search: `${search}*`,
search,
searchFields: ['title'],
perPage: size,
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ export default class IndexPatternSelect extends Component<IndexPatternSelectInte

debouncedFetch = _.debounce(async (searchValue: string) => {
const { fieldTypes, onNoIndexPatterns, indexPatternService } = this.props;
const indexPatterns = await indexPatternService.find(searchValue, 100);
const indexPatterns = await indexPatternService.find(`${searchValue}*`, 100);

// We need this check to handle the case where search results come back in a different
// order than they were sent out. Only load results for the most recent search.
Expand Down

0 comments on commit ca1c0bb

Please sign in to comment.