import { Filter } from '../filters' ; import { IIndexPattern } from '../..' ; export function getIndexPatternFromFilter ( filter , indexPatterns ) { return indexPatterns . find ( ( indexPattern ) => indexPattern . id === filter . meta . index ) ; }