use IndexPattern instead of IIndexPattern (#107200) (#107275)

Co-authored-by: Matthew Kime <matt@mattki.me>
This commit is contained in:
Kibana Machine 2021-07-30 08:40:16 -04:00 committed by GitHub
parent 269592482d
commit 5802dde127
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();