Skip to content

Commit 05ec7ff

Browse files
Preview on empty description crashes app
1 parent ed26ce7 commit 05ec7ff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/log/EntryEditor/Description/Description.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ const Description = ({ form, isEditing }) => {
327327
<HtmlPreviewModal
328328
showHtmlPreview={showHtmlPreview}
329329
setShowHtmlPreview={setShowHtmlPreview}
330-
commonmarkSrc={getValues("description")}
330+
commonmarkSrc={getValues("description") ?? ""}
331331
useRemoteAttachments={isEditing}
332332
attachedFiles={attachments ?? []}
333333
/>

0 commit comments

Comments
 (0)