Skip to content

Commit 23bb935

Browse files
fix(markdown): crash if value is empty (#233)
1 parent 834327a commit 23bb935

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/renderer/components/markdown/TheMarkdown.vue

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,8 @@ onMounted(() => {
102102
})
103103
104104
const render = () => {
105+
if (!props.value) return
106+
105107
const raw = marked.parse(props.value)
106108
107109
let html = sanitizeHtml(raw, {

0 commit comments

Comments
 (0)