Skip to content

Commit

Permalink
fix issue with filter update
Browse files Browse the repository at this point in the history
  • Loading branch information
shahzad31 committed Jan 30, 2020
1 parent 19f3c19 commit 9dd2d9b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,10 @@ export const useUpdateKueryString = (
const elasticsearchQuery = esKuery.toElasticsearchQuery(ast, indexPattern);

esFilters = JSON.stringify(elasticsearchQuery);

updateEsQueryForFilterGroup(filterQueryString, indexPattern);
}
// update redux store
updateEsQueryForFilterGroup(filterQueryString, indexPattern);

return [esFilters];
} catch (err) {
return [urlFilters, err];
Expand Down
2 changes: 0 additions & 2 deletions x-pack/legacy/plugins/uptime/public/pages/overview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@ import { useUrlParams, useUptimeTelemetry, UptimePage } from '../hooks';
import { stringifyUrlParams } from '../lib/helper/stringify_url_params';
import { useTrackPageview } from '../../../infra/public';
import { AutocompleteProviderRegister } from '../../../../../../src/plugins/data/public';
import { store } from '../state';
import { setEsKueryString } from '../state/actions';
import { PageHeader } from './page_header';
import { IIndexPattern } from '../../../../../../src/plugins/data/public';
import { UptimeThemeContext } from '../contexts';
Expand Down

0 comments on commit 9dd2d9b

Please sign in to comment.