Skip to content

Commit

Permalink
Reload when loadData function is changed
Browse files Browse the repository at this point in the history
  • Loading branch information
phillipb committed Jul 21, 2020
1 parent bc747c2 commit f0ceef3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export const MetricsExplorerPage = ({ source, derivedIndexPattern }: MetricsExpl
loadData();
}
/* eslint-disable-next-line react-hooks/exhaustive-deps */
}, [currentView, shouldLoadDefault]);
}, [loadData, shouldLoadDefault]);

return (
<EuiErrorBoundary>
Expand Down

0 comments on commit f0ceef3

Please sign in to comment.