topic descriptions from old data can be nil

This commit is contained in:
Connor Turland 2016-11-04 21:03:11 +00:00
parent 48b93b2269
commit 667f5653a7

View file

@ -129,9 +129,10 @@ const Util = {
} }
}, },
mdToHTML: text => { mdToHTML: text => {
const safeText = text || ''
// use safe: true to filter xss // use safe: true to filter xss
return new HtmlRenderer({ safe: true }) return new HtmlRenderer({ safe: true })
.render(new Parser().parse(text)) .render(new Parser().parse(safeText))
}, },
logCanvasAttributes: function(canvas){ logCanvasAttributes: function(canvas){
const fakeMgraph = { canvas } const fakeMgraph = { canvas }