File tree Expand file tree Collapse file tree 2 files changed +0
-16
lines changed
src/plugins/data/public/ui/index_pattern_select Expand file tree Collapse file tree 2 files changed +0
-16
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,6 @@ import _ from 'lodash';
2121import React from 'react' ;
2222
2323import { IndexPatternsContract } from 'src/plugins/data/public' ;
24- import { SavedObjectsClientContract } from 'src/core/public' ;
2524import { IndexPatternSelect , IndexPatternSelectProps } from './' ;
2625
2726// Takes in stateful runtime dependencies and pre-wires them to the component
Original file line number Diff line number Diff line change @@ -49,21 +49,6 @@ interface IndexPatternSelectState {
4949 searchValue : string | undefined ;
5050}
5151
52- const getIndexPatterns = async (
53- client : SavedObjectsClientContract ,
54- search : string ,
55- fields : string [ ]
56- ) => {
57- const resp = await client . find ( {
58- type : 'index-pattern' ,
59- fields,
60- search : `${ search } *` ,
61- searchFields : [ 'title' ] ,
62- perPage : 100 ,
63- } ) ;
64- return resp . savedObjects ;
65- } ;
66-
6752// Needed for React.lazy
6853// eslint-disable-next-line import/no-default-export
6954export default class IndexPatternSelect extends Component < IndexPatternSelectInternalProps > {
You can’t perform that action at this time.
0 commit comments