Skip to content

Commit

Permalink
fix: file name too long
Browse files Browse the repository at this point in the history
  • Loading branch information
orangelckc committed Mar 30, 2023
1 parent 7995a9f commit 87fbe1f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/saveMarkdown.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export const saveMarkdown = async (event: MouseEvent, content: any) => {
if (window[uuid]) return
window[uuid] = uuid

const file = `${currentSession?.title}-${Date.now()}.md`
const file = `${currentSession?.title.slice(0, 10)}-${Date.now()}.md`

await writeTextFile(file, content?.prompt || content, {
dir: BaseDirectory.Download
Expand Down

0 comments on commit 87fbe1f

Please sign in to comment.