fix(markdown): make sure to only render strings, fix #11080

This commit is contained in:
Matteo Pagliazzi
2019-03-31 19:38:34 +02:00
parent 0b65ac6c4f
commit 01281b6414
3 changed files with 6 additions and 3 deletions

View File

@@ -269,7 +269,8 @@ export default {
return highlightUsers(text, this.user.auth.local.username, this.user.profile.name);
},
parseMarkdown (text) {
return habiticaMarkdown.render(text);
if (!text) return;
return habiticaMarkdown.render(String(text));
},
},
};