#809 - Fix retrieving the filePrefix when updating the file name on slug change

This commit is contained in:
Elio Struyf
2024-05-22 20:24:22 +02:00
parent 0e92834517
commit 31873bc2d2
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -22,6 +22,7 @@
- [#801](https://github.com/estruyf/vscode-front-matter/issues/801): Faster folder processing on updates
- [#804](https://github.com/estruyf/vscode-front-matter/issues/804): Fix blinking of the front matter content area
- [#806](https://github.com/estruyf/vscode-front-matter/issues/804): Fix preview URL for `index.md` files in root of the page folder path
- [#809](https://github.com/estruyf/vscode-front-matter/issues/809): Fix retrieving the `filePrefix` when updating the file name on slug change
## [10.1.0] - 2024-04-11 - [Release notes](https://beta.frontmatter.codes/updates/v10.1.0)
+1 -1
View File
@@ -602,7 +602,7 @@ export class ArticleHelper {
// Retrieve the file prefix from the folder
if (filePath) {
const filePrefixOnFolder = await Folders.getFilePrefixByFolderPath(filePath);
const filePrefixOnFolder = await Folders.getFilePrefixBeFilePath(filePath);
if (typeof filePrefixOnFolder !== 'undefined') {
prefix = filePrefixOnFolder;
}