From 22a28a8fd9d914c5ba9ff093bc257fd51a2695d2 Mon Sep 17 00:00:00 2001 From: yflory Date: Tue, 18 Jul 2017 11:49:54 +0200 Subject: [PATCH] Fix undefined description in profile --- www/profile/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/profile/main.js b/www/profile/main.js index 102ef01b1..ac8ea22c6 100644 --- a/www/profile/main.js +++ b/www/profile/main.js @@ -373,7 +373,7 @@ define([ var $block = $('
', {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 = $('
', {'class': 'rendered'}).appendTo($block); var val = Marked(APP.lm.proxy.description); $div.html(val);