Desktop: Fix error when a note has no history (#11702)

pull/11715/head
Henry Heino 2025-01-22 05:39:21 -08:00 committed by GitHub
parent 2c1aa5d620
commit d621e631f7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -61,7 +61,7 @@ const useNoteContent = (
useQueuedAsyncEffect(async () => {
const noteBody = note?.body ?? _('This note has no history');
const markupLanguage = note.markup_language ?? MarkupLanguage.Markdown;
const markupLanguage = note?.markup_language ?? MarkupLanguage.Markdown;
const result = await markupToHtml(markupLanguage, noteBody, {
resources: await shared.attachedResources(noteBody),
whiteBackgroundNoteRendering: markupLanguage === MarkupLanguage.Html,