File tree Expand file tree Collapse file tree 4 files changed +8
-38
lines changed Expand file tree Collapse file tree 4 files changed +8
-38
lines changed Original file line number Diff line number Diff line change 61
61
"prismjs" : " 1.25.0" ,
62
62
"prop-types" : " 15.7.2" ,
63
63
"qrcode" : " 1.4.4" ,
64
- "query-string" : " 6.14.1" ,
65
64
"react" : " 16.14.0" ,
66
65
"react-ace" : " 9.4.3" ,
67
66
"react-dnd" : " 10.0.2" ,
Original file line number Diff line number Diff line change @@ -34,7 +34,6 @@ import stringCompare from 'lib/stringCompare';
34
34
import styles from 'dashboard/Data/Browser/Browser.scss' ;
35
35
import subscribeTo from 'lib/subscribeTo' ;
36
36
import * as ColumnPreferences from 'lib/ColumnPreferences' ;
37
- import * as queryString from 'query-string' ;
38
37
import { Helmet } from 'react-helmet' ;
39
38
import PropTypes from 'lib/PropTypes' ;
40
39
import ParseApp from 'lib/ParseApp' ;
@@ -213,9 +212,9 @@ class Browser extends DashboardView {
213
212
if ( ! props || ! props . location || ! props . location . search ) {
214
213
return filters ;
215
214
}
216
- const query = queryString . parse ( props . location . search ) ;
217
- if ( query . filters ) {
218
- const queryFilters = JSON . parse ( query . filters ) ;
215
+ const query = new URLSearchParams ( props . location . search ) ;
216
+ if ( query . has ( ' filters' ) ) {
217
+ const queryFilters = JSON . parse ( query . get ( ' filters' ) ) ;
219
218
queryFilters . forEach ( ( filter ) => filters = filters . push ( new Map ( filter ) ) ) ;
220
219
}
221
220
return filters ;
Original file line number Diff line number Diff line change @@ -36,7 +36,6 @@ import Toggle from 'components/Toggle/Toggle.react';
36
36
import Toolbar from 'components/Toolbar/Toolbar.react' ;
37
37
import { Directions } from 'lib/Constants' ;
38
38
import { extractExpiration , extractPushTime } from 'lib/extractTime' ;
39
- import * as queryString from 'query-string' ;
40
39
41
40
const PARSE_SERVER_SUPPORTS_AB_TESTING = false ;
42
41
@@ -148,11 +147,11 @@ class PushNew extends DashboardView {
148
147
componentWillMount ( ) {
149
148
this . props . schema . dispatch ( SchemaStore . ActionTypes . FETCH ) ;
150
149
let options = { xhrKey : XHR_KEY } ;
151
- const query = queryString . parse ( this . props . location . search ) ;
152
- if ( query . audienceId ) {
150
+ const query = new URLSearchParams ( this . props . location . search ) ;
151
+ if ( query . has ( ' audienceId' ) ) {
153
152
options . limit = PushConstants . SHOW_MORE_LIMIT ;
154
153
options . min = PushConstants . INITIAL_PAGE_SIZE ;
155
- this . setState ( { initialAudienceId : query . audienceId } ) ;
154
+ this . setState ( { initialAudienceId : query . get ( ' audienceId' ) } ) ;
156
155
}
157
156
this . props . pushaudiences . dispatch ( PushAudiencesStore . ActionTypes . FETCH ,
158
157
options ) . then ( ( ) => {
You can’t perform that action at this time.
0 commit comments