File tree 2 files changed +0
-16
lines changed
src/plugins/data/public/ui/index_pattern_select
2 files changed +0
-16
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,6 @@ import _ from 'lodash';
21
21
import React from 'react' ;
22
22
23
23
import { IndexPatternsContract } from 'src/plugins/data/public' ;
24
- import { SavedObjectsClientContract } from 'src/core/public' ;
25
24
import { IndexPatternSelect , IndexPatternSelectProps } from './' ;
26
25
27
26
// 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 {
49
49
searchValue : string | undefined ;
50
50
}
51
51
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
-
67
52
// Needed for React.lazy
68
53
// eslint-disable-next-line import/no-default-export
69
54
export default class IndexPatternSelect extends Component < IndexPatternSelectInternalProps > {
You can’t perform that action at this time.
0 commit comments