#143 - Fix for recent files unique values

This commit is contained in:
Elio Struyf
2021-10-11 10:55:58 +02:00
parent f8b7870180
commit c11be0e3ec
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -10,6 +10,7 @@
- Rendered more hooks than during the previous render in `FileList`
- [#142](https://github.com/estruyf/vscode-front-matter/issues/142): Fix for unknown tags where it throws an error
- [#143](https://github.com/estruyf/vscode-front-matter/issues/143): Fix for duplicate values in the file list
## [5.0.0] - 2021-10-07 - [Release Notes](https://beta.frontmatter.codes/updates/v5.0.0)
+1 -1
View File
@@ -22,7 +22,7 @@ export const FileList: React.FunctionComponent<IFileListProps> = ({files, folder
<ul className="file_list__items">
{
files.map(file => (
<FileItem key={file.fileName} name={file.fileName} path={file.filePath} />
<FileItem key={file.filePath} name={file.fileName} path={file.filePath} />
))
}
</ul>