diff --git a/x-pack/legacy/plugins/uptime/public/hooks/use_index_pattern.ts b/x-pack/legacy/plugins/uptime/public/hooks/use_index_pattern.ts index eb9b475a35716..f2b586b27dba6 100644 --- a/x-pack/legacy/plugins/uptime/public/hooks/use_index_pattern.ts +++ b/x-pack/legacy/plugins/uptime/public/hooks/use_index_pattern.ts @@ -16,5 +16,6 @@ export const useIndexPattern = (setIndexPattern: Dispatch) => { 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]); };