resilient when title is not set
This commit is contained in:
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user