@@ -44,8 +44,7 @@ import { withRouter } from 'lib/withRouter';
44
44
import { get } from 'lib/AJAX' ;
45
45
import BrowserFooter from './BrowserFooter.react' ;
46
46
47
- const SELECTED_ROWS_MESSAGE =
48
- 'There are selected rows. Are you sure you want to leave this page?' ;
47
+ const SELECTED_ROWS_MESSAGE = 'There are selected rows. Are you sure you want to leave this page?' ;
49
48
50
49
function SelectedRowsNavigationPrompt ( { when } ) {
51
50
const message = SELECTED_ROWS_MESSAGE ;
@@ -119,7 +118,7 @@ function SelectedRowsNavigationPrompt({ when }) {
119
118
}
120
119
121
120
// The initial and max amount of rows fetched by lazy loading
122
- const BROWSER_LAST_LOCATION = 'brower_last_location ' ;
121
+ const BROWSER_LAST_LOCATION = 'browser_last_location ' ;
123
122
124
123
@subscribeTo ( 'Schema' , 'schema' )
125
124
@withRouter
@@ -386,6 +385,13 @@ class Browser extends DashboardView {
386
385
}
387
386
addLocation ( appId ) {
388
387
if ( window . localStorage ) {
388
+ const currentSearch = this . props . location ?. search ;
389
+ if ( currentSearch ) {
390
+ const params = new URLSearchParams ( currentSearch ) ;
391
+ if ( params . has ( 'filters' ) ) {
392
+ return ;
393
+ }
394
+ }
389
395
let pathname = null ;
390
396
const newLastLocations = [ ] ;
391
397
@@ -1505,22 +1511,17 @@ class Browser extends DashboardView {
1505
1511
1506
1512
if ( error . code === Parse . Error . AGGREGATE_ERROR ) {
1507
1513
if ( error . errors . length == 1 ) {
1508
- errorDeletingNote =
1509
- `Error deleting ${ className } with id '${ error . errors [ 0 ] . object . id } '` ;
1514
+ errorDeletingNote = `Error deleting ${ className } with id '${ error . errors [ 0 ] . object . id } '` ;
1510
1515
} else if ( error . errors . length < toDeleteObjectIds . length ) {
1511
- errorDeletingNote =
1512
- `Error deleting ${ error . errors . length } out of ${ toDeleteObjectIds . length } ${ className } objects` ;
1516
+ errorDeletingNote = `Error deleting ${ error . errors . length } out of ${ toDeleteObjectIds . length } ${ className } objects` ;
1513
1517
} else {
1514
- errorDeletingNote =
1515
- `Error deleting all ${ error . errors . length } ${ className } objects` ;
1518
+ errorDeletingNote = `Error deleting all ${ error . errors . length } ${ className } objects` ;
1516
1519
}
1517
1520
} else {
1518
1521
if ( toDeleteObjectIds . length == 1 ) {
1519
- errorDeletingNote =
1520
- `Error deleting ${ className } with id '${ toDeleteObjectIds [ 0 ] } '` ;
1522
+ errorDeletingNote = `Error deleting ${ className } with id '${ toDeleteObjectIds [ 0 ] } '` ;
1521
1523
} else {
1522
- errorDeletingNote =
1523
- `Error deleting ${ toDeleteObjectIds . length } ${ className } objects` ;
1524
+ errorDeletingNote = `Error deleting ${ toDeleteObjectIds . length } ${ className } objects` ;
1524
1525
}
1525
1526
}
1526
1527
@@ -2526,9 +2527,7 @@ class Browser extends DashboardView {
2526
2527
< Helmet >
2527
2528
< title > { pageTitle } </ title >
2528
2529
</ Helmet >
2529
- < SelectedRowsNavigationPrompt
2530
- when = { Object . keys ( this . state . selection ) . length > 0 }
2531
- />
2530
+ < SelectedRowsNavigationPrompt when = { Object . keys ( this . state . selection ) . length > 0 } />
2532
2531
{ browser }
2533
2532
{ notification }
2534
2533
{ extras }
0 commit comments