diff --git a/src/legacy/core_plugins/data/public/query/query_bar/components/query_bar_top_row.tsx b/src/legacy/core_plugins/data/public/query/query_bar/components/query_bar_top_row.tsx index 2b76a3e0a735c..d2953621d86d1 100644 --- a/src/legacy/core_plugins/data/public/query/query_bar/components/query_bar_top_row.tsx +++ b/src/legacy/core_plugins/data/public/query/query_bar/components/query_bar_top_row.tsx @@ -79,8 +79,7 @@ function QueryBarTopRowUI(props: Props) { const queryLanguage = props.query && props.query.language; const persistedLog: PersistedLog | undefined = React.useMemo( - () => - queryLanguage ? getQueryLog(uiSettings!, store, appName, queryLanguage) : undefined, + () => (queryLanguage ? getQueryLog(uiSettings!, storage, appName, queryLanguage) : undefined), [queryLanguage] );