@@ -23,7 +23,7 @@ export const useCurrentProjectId = () => {
2323 }
2424 const projectId = query . project ;
2525
26- const setCurrentProjectId = ( newProjectId ?: string , shallow ?: true ) => {
26+ const setCurrentProjectId = ( newProjectId ?: string ) => {
2727 // Selected project is maintained via the URL "project" query parameter. We use next-js to update it.
2828 if ( newProjectId !== undefined ) {
2929 // A project has been selected
@@ -36,7 +36,7 @@ export const useCurrentProjectId = () => {
3636 } ,
3737 } ;
3838
39- void router . push ( href , undefined , { shallow } ) ;
39+ void router . push ( href , undefined ) ;
4040 } else if ( projectId !== undefined ) {
4141 // The project has been cleared
4242 const newQuery = { ...query } ;
@@ -45,7 +45,7 @@ export const useCurrentProjectId = () => {
4545
4646 const href = { pathname, query : newQuery } ;
4747 writeToLocalStorage ( PROJECT_LOCAL_STORAGE_KEY , projectPayload ( undefined ) ) ;
48- void router . push ( href , undefined , { shallow , scroll : false } ) ;
48+ void router . push ( href , undefined , { scroll : false } ) ;
4949 }
5050 } ;
5151
0 commit comments