🐛 (images) fix images not showing when reloading the page

This commit is contained in:
Julien Calixte
2023-07-18 00:19:27 +02:00
parent 9d85abbc64
commit f2d464ce74
2 changed files with 18 additions and 12 deletions

View File

@@ -36,13 +36,15 @@ const { displayNoteOverlay } = useNoteOverlay(className.value, props.index)
const displayedTitle = computed(() => filenameToNoteTitle(props.title))
watch(content, () => {
if (content.value) {
nextTick(() => {
listenToClick()
useImages(props.sha)
generateTweets()
})
if (!content.value) {
return
}
nextTick(() => {
listenToClick()
useImages(props.sha)
generateTweets()
})
})
const focus = () => scrollToFocusedNote(props.sha)