Skip to content

Commit

Permalink
Fix error with non-unique keys in map
Browse files Browse the repository at this point in the history
  • Loading branch information
khakimov committed Dec 30, 2023
1 parent e269194 commit 4f39336
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/renderer/pages/Pile/Reflections/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,9 @@ export default function Reflections() {
if (!response) return;
const sources = response.sourceNodes;

return sources.map((source) => {
return sources.map((source, index) => {
return (
<div className={styles.post}>
<div key={index} className={styles.post}>
<Post
key={`post-${source.metadata.relativeFilePath}`}
postPath={source.metadata.relativeFilePath}
Expand Down

0 comments on commit 4f39336

Please sign in to comment.