Skip to content

Commit

Permalink
fix: adding files with md suffix problem
Browse files Browse the repository at this point in the history
  • Loading branch information
1943time committed Jul 11, 2023
1 parent 087bfca commit be56422
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/renderer/src/store/tree.ts
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@ export class TreeStore {
file.ext = 'md'
file.mode = undefined
file.children = file.folder ? [] : undefined
file.filename = file.editName
file.filename = file.editName.replace(/\.md$/, '')
file.editName = undefined
}
parent.children = sortFiles(parent.children!)
Expand Down

0 comments on commit be56422

Please sign in to comment.