@@ -23,7 +23,7 @@ export const useCurrentProjectId = () => {
23
23
}
24
24
const projectId = query . project ;
25
25
26
- const setCurrentProjectId = ( newProjectId ?: string , shallow ?: true ) => {
26
+ const setCurrentProjectId = ( newProjectId ?: string ) => {
27
27
// Selected project is maintained via the URL "project" query parameter. We use next-js to update it.
28
28
if ( newProjectId !== undefined ) {
29
29
// A project has been selected
@@ -36,7 +36,7 @@ export const useCurrentProjectId = () => {
36
36
} ,
37
37
} ;
38
38
39
- void router . push ( href , undefined , { shallow } ) ;
39
+ void router . push ( href , undefined ) ;
40
40
} else if ( projectId !== undefined ) {
41
41
// The project has been cleared
42
42
const newQuery = { ...query } ;
@@ -45,7 +45,7 @@ export const useCurrentProjectId = () => {
45
45
46
46
const href = { pathname, query : newQuery } ;
47
47
writeToLocalStorage ( PROJECT_LOCAL_STORAGE_KEY , projectPayload ( undefined ) ) ;
48
- void router . push ( href , undefined , { shallow , scroll : false } ) ;
48
+ void router . push ( href , undefined , { scroll : false } ) ;
49
49
}
50
50
} ;
51
51
0 commit comments