resilient when title is not set

This commit is contained in:
Julien Calixte
2024-07-16 21:55:30 +02:00
parent 5329287ecd
commit 100d593050

View File

@@ -33,7 +33,7 @@ const props = defineProps<{
user: string user: string
repo: string repo: string
index: number index: number
title: string title?: string
sha: string sha: string
}>() }>()
@@ -62,7 +62,7 @@ const store = useUserRepoStore()
const hasBacklinks = computed(() => store.userSettings?.backlink) const hasBacklinks = computed(() => store.userSettings?.backlink)
const { displayNoteOverlay } = useNoteOverlay(className.value, index) const { displayNoteOverlay } = useNoteOverlay(className.value, index)
const displayedTitle = computed(() => filenameToNoteTitle(props.title)) const displayedTitle = computed(() => filenameToNoteTitle(props.title ?? ''))
const { updateFile } = useGitHubContent({ const { updateFile } = useGitHubContent({
user: user.value, user: user.value,