✨ (folder notes) content is nullable if there is no files.
This commit is contained in:
@@ -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 {
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user