(folder notes) content is nullable if there is no files.

This commit is contained in:
Julien Calixte
2021-04-03 20:12:47 +02:00
parent 3a52f85ade
commit 53046ba2db
2 changed files with 3 additions and 3 deletions

View File

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