This commit is contained in:
2021-04-04 16:22:25 +02:00
parent 006ad63747
commit 32fc87b9e4
2 changed files with 7 additions and 3 deletions

View File

@@ -13,9 +13,12 @@ export const useFolderNotes = (folder: string) => {
const content = computed(() =>
fleetingNotes.value?.length > 0
? fleetingNotes.value
.map((note) => `- [${note.path}](${note.path})`)
.map(
(note) =>
`- [${note.path?.replace(`${folder}/`, '')}](${note.path})`
)
.join('\n')
: null
: ''
)
return {