use IndexPattern instead of IIndexPattern (#107200)

This commit is contained in:
Matthew Kime 2021-07-30 05:18:17 -05:00 committed by GitHub
parent 9b00a26e82
commit e8a4d6177e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -26,7 +26,7 @@ import {
DataPublicPluginStart,
esFilters,
Filter,
IIndexPattern,
IndexPattern,
Query,
QueryState,
syncQueryStateWithUrl,
@ -127,7 +127,7 @@ export const App = ({
};
function useIndexPattern(data: DataPublicPluginStart) {
const [indexPattern, setIndexPattern] = useState<IIndexPattern>();
const [indexPattern, setIndexPattern] = useState<IndexPattern>();
useEffect(() => {
const fetchIndexPattern = async () => {
const defaultIndexPattern = await data.indexPatterns.getDefault();