Fix undefined description in profile

pull/1/head
yflory 8 years ago
parent 26fa914982
commit 22a28a8fd9

@ -373,7 +373,7 @@ define([
var $block = $('<div>', {id: DESCRIPTION_ID}).appendTo($container);
if (APP.readOnly) {
if (!APP.lm.proxy.description.trim()) { return void $block.hide(); }
if (!(APP.lm.proxy.description || "").trim()) { return void $block.hide(); }
var $div = $('<div>', {'class': 'rendered'}).appendTo($block);
var val = Marked(APP.lm.proxy.description);
$div.html(val);

Loading…
Cancel
Save