File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -381,20 +381,31 @@ class TheFormDef extends React.PureComponent {
381
381
if ( this . props . isSingle && record . lists ) {
382
382
subLists = record . lists
383
383
. map ( v => {
384
+ // Exclude deleted lists.
384
385
return v . id !== 0 ? v . id : null
385
386
} )
386
387
. filter ( v => v !== null )
387
388
} else if ( this . props . route . location . search ) {
388
- // list_id in the query params.
389
+ // One or more list_id in the query params.
389
390
const p = parseUrl . parse ( this . props . route . location . search . substring ( 1 ) )
390
391
if ( p . hasOwnProperty ( "list_id" ) ) {
392
+ if ( Array . isArray ( p . list_id ) ) {
393
+ p . list_id . forEach ( i => {
394
+ // eslint-disable-next-line radix
395
+ const id = parseInt ( i )
396
+ if ( id ) {
397
+ subLists . push ( id )
398
+ }
399
+ } ) ;
400
+ } else {
391
401
// eslint-disable-next-line radix
392
402
const id = parseInt ( p . list_id )
393
403
if ( id ) {
394
404
subLists . push ( id )
395
405
}
396
406
}
397
407
}
408
+ }
398
409
399
410
if ( this . record ) {
400
411
this . props . pageTitle ( record . name + " / Campaigns" )
You can’t perform that action at this time.
0 commit comments