File tree Expand file tree Collapse file tree 1 file changed +1
-6
lines changed
npm-packages/dashboard/src/lib Expand file tree Collapse file tree 1 file changed +1
-6
lines changed Original file line number Diff line number Diff line change @@ -121,11 +121,7 @@ const getProps: GetServerSideProps<{
121121 } [ ] ;
122122 } = await resp . json ( ) ;
123123 const { team, project, deploymentName } = query ;
124- if (
125- ( team && ! teams . find ( ( t : TeamResponse ) => t . slug === team . toString ( ) ) ) ||
126- ( project &&
127- ! projects . find ( ( p : ProjectDetails ) => p . slug === project . toString ( ) ) )
128- ) {
124+ if ( team && ! teams . find ( ( t : TeamResponse ) => t . slug === team . toString ( ) ) ) {
129125 // You're looking for a page that doesn't exist!
130126 return pageNotFound ( res ) ;
131127 }
@@ -288,7 +284,6 @@ async function redirectToProjectPage(
288284 } ,
289285 } ;
290286 } catch ( error ) {
291- console . error ( "Error redirecting to project page" , error ) ;
292287 return pageNotFound ( res ) ;
293288 }
294289}
You can’t perform that action at this time.
0 commit comments