Remove dependency that was causing effect to re-execute infinitely. (#54160)
This commit is contained in:
parent
9eb0c77318
commit
7b33fd318c
|
@ -16,5 +16,6 @@ export const useIndexPattern = <T>(setIndexPattern: Dispatch<T>) => {
|
|||
setIndexPattern(await fetch('/api/uptime/index_pattern', { method: 'GET' }));
|
||||
}
|
||||
getIndexPattern();
|
||||
}, [core.services.http, setIndexPattern]);
|
||||
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||
}, [core.services.http]);
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue