Skip to content

Commit

Permalink
[ui/utils/query_string]: Remove unused methods & migrate apps to quer…
Browse files Browse the repository at this point in the history
…ystring lib (elastic#56957)

This was already backported, but changes to endpoint app could not be
backported, since endpoint app itself hadn't been backported. Now that
the endpoint app is backported, reapply the endpoint specific changes
from the original commit.
  • Loading branch information
alexwizp authored and oatkiller committed Feb 18, 2020
1 parent 1ff6799 commit ac24b5e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
* you may not use this file except in compliance with the Elastic License.
*/

import qs from 'querystring';
import { parse } from 'query-string';
import { HttpFetchQuery } from 'src/core/public';
import { AppAction } from '../action';
import { MiddlewareFactory, AlertListData } from '../../types';

export const alertMiddlewareFactory: MiddlewareFactory = coreStart => {
const qp = qs.parse(window.location.search.slice(1));
const qp = parse(window.location.search.slice(1), { sort: false });

return api => next => async (action: AppAction) => {
next(action);
Expand Down

0 comments on commit ac24b5e

Please sign in to comment.