File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed
src/pages/communities/[slug] Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,6 @@ import { useTranslation } from "next-i18next";
15
15
import Head from "next/head" ;
16
16
import { getMetadataDescription , getMetadataTitle } from "@/utilities/Metadata" ;
17
17
import LearningMaterialsOverview from "@/components/sections/communities/overview/LearningMaterials" ;
18
- import { randomUUID } from "crypto" ;
19
18
export default function Slug ( props : {
20
19
pageProps : {
21
20
community : Community ;
@@ -29,7 +28,7 @@ export default function Slug(props: {
29
28
< Head >
30
29
< title > { getMetadataTitle ( t ( "communities.navigation.courses" ) , community ?. name as string ) } </ title >
31
30
{ getMetadataDescription ( community ?. description as string ) . map ( ( attributes ) => (
32
- < meta key = { `scoreboard-meta-${ randomUUID ( ) } ` } { ...attributes } />
31
+ < meta key = { `scoreboard-meta-${ attributes . hid } ` } { ...attributes } />
33
32
) ) }
34
33
</ Head >
35
34
< CommunityWrapper >
Original file line number Diff line number Diff line change @@ -11,7 +11,6 @@ import { Community } from "@/types/community";
11
11
import CommunityWrapper from "@/components/sections/communities/overview/Wrapper" ;
12
12
import { Course , LearningModule } from "@/types/course" ;
13
13
import LearningMaterialsOverview from "@/components/sections/communities/overview/LearningMaterials" ;
14
- import { randomUUID } from "crypto" ;
15
14
16
15
export default function LearningMaterials ( props : {
17
16
pageProps : {
@@ -26,7 +25,7 @@ export default function LearningMaterials(props: {
26
25
< Head >
27
26
< title > { getMetadataTitle ( t ( "communities.navigation.learning-materials" ) , community ?. name as string ) } </ title >
28
27
{ getMetadataDescription ( community ?. description as string ) . map ( ( attributes ) => (
29
- < meta key = { `scoreboard-meta-${ randomUUID ( ) } ` } { ...attributes } />
28
+ < meta key = { `scoreboard-meta-${ attributes . hid } ` } { ...attributes } />
30
29
) ) }
31
30
</ Head >
32
31
< CommunityWrapper >
You can’t perform that action at this time.
0 commit comments