File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ const SnippetList = () => {
37
37
< motion . ul role = "list" className = "snippets" >
38
38
< AnimatePresence mode = "popLayout" >
39
39
{ fetchedSnippets . map ( ( snippet , idx ) => {
40
- const uniqueId = `${ snippet . title } -${ snippet . description } ` ;
40
+ const uniqueId = `${ language . lang } -${ snippet . title } ` ;
41
41
return (
42
42
< motion . li
43
43
key = { uniqueId }
Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ const SnippetModal: React.FC<Props> = ({
49
49
key = "modal-content"
50
50
className = "modal | flow"
51
51
data-flow-space = "lg"
52
- layoutId = { `${ snippet . title } -${ snippet . description } ` }
52
+ layoutId = { `${ language } -${ snippet . title } ` }
53
53
transition = { { type : "spring" , duration : shouldReduceMotion ? 0 : 0.5 } }
54
54
>
55
55
< div className = "modal__header" >
You can’t perform that action at this time.
0 commit comments