(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(() => const content = computed(() =>
fleetingNotes.value?.length fleetingNotes.value?.length > 0
? fleetingNotes.value ? fleetingNotes.value
.map((note) => `- [${note.path}](${note.path})`) .map((note) => `- [${note.path}](${note.path})`)
.join('\n') .join('\n')
: '' : null
) )
return { return {

View File

@@ -7,7 +7,7 @@
key="fleeting-notes" key="fleeting-notes"
> >
<h3 class="subtitle is-3"> <h3 class="subtitle is-3">
Fleeting notes Inbox
</h3> </h3>
</flux-note> </flux-note>
</div> </div>