File tree Expand file tree Collapse file tree 3 files changed +6
-4
lines changed
Expand file tree Collapse file tree 3 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -133,6 +133,7 @@ const query = gql`
133133 fileSize
134134 }
135135 name
136+ firebaseId
136137 image {
137138 id
138139 file {
Original file line number Diff line number Diff line change @@ -118,6 +118,7 @@ export const getStaticProps: GetStaticProps = async (context) => {
118118 id : feature . id ?? '' ,
119119 projectType : feature . projectType ,
120120 name : feature . name ,
121+ firebaseId : feature . firebaseId ,
121122 status : feature . status ?? null ,
122123 region : feature . region ?? null ,
123124 requestingOrganizationId : feature . requestingOrganization ?. id ?? null ,
@@ -812,7 +813,7 @@ function Data(props: Props) {
812813 < Link
813814 className = { styles . cardLink }
814815 key = { project . id }
815- href = { `/[locale]/projects/${ project . id } ` }
816+ href = { `/[locale]/projects/${ project . firebaseId } ` }
816817 >
817818 < Card
818819 className = { styles . project }
Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ async function getProjectData(id: string) {
5656 const projects = (
5757 data as AllDataQuery
5858 ) ?. publicProjects ?. results as unknown as PublicProjects ;
59- return projects ?. find ( ( item ) => String ( item . id ) === id ) ;
59+ return projects ?. find ( ( item ) => String ( item . firebaseId ) === id ) ;
6060}
6161
6262const X_AXIS_HEIGHT = 20 ;
@@ -862,9 +862,9 @@ export const getStaticPaths: GetStaticPaths = async () => {
862862 const projects = await getAllProjects ( ) ?? [ ] ;
863863
864864 const pathsWithParams = projects . flatMap (
865- ( project : { id : string } ) => i18nextConfig . i18n . locales . map ( ( lng : string ) => ( {
865+ ( project : { firebaseId : string } ) => i18nextConfig . i18n . locales . map ( ( lng : string ) => ( {
866866 params : {
867- id : project . id . toString ( ) ,
867+ id : project . firebaseId . toString ( ) ,
868868 locale : lng ,
869869 } ,
870870 } ) ) ,
You can’t perform that action at this time.
0 commit comments