Skip to content

Commit

Permalink
Merge pull request #39 from khakimov/fix/reflections-map-over-source-…
Browse files Browse the repository at this point in the history
…with-key

Fix error with non-unique keys in map
  • Loading branch information
UdaraJay authored Dec 30, 2023
2 parents e269194 + 4f39336 commit 5498dd7
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 5498dd7

Please sign in to comment.