From f401d8d7def3763b54045640645c93bd8e39675c Mon Sep 17 00:00:00 2001 From: Robin Ward Date: Wed, 11 May 2016 16:25:43 -0400 Subject: [PATCH] FIX: `undefined` text on user profile --- app/assets/javascripts/discourse/lib/helpers.js.es6 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/assets/javascripts/discourse/lib/helpers.js.es6 b/app/assets/javascripts/discourse/lib/helpers.js.es6 index 5ae2cbe1654..153366f34ad 100644 --- a/app/assets/javascripts/discourse/lib/helpers.js.es6 +++ b/app/assets/javascripts/discourse/lib/helpers.js.es6 @@ -2,11 +2,11 @@ export function htmlHelper(fn) { if (Ember.Helper) { return Ember.Helper.helper(function() { - return new Handlebars.SafeString(fn.apply(this, Array.prototype.slice.call(arguments))); + return new Handlebars.SafeString(fn.apply(this, Array.prototype.slice.call(arguments)) || ''); }); } else { return Ember.Handlebars.makeBoundHelper(function() { - return new Handlebars.SafeString(fn.apply(this, Array.prototype.slice.call(arguments))); + return new Handlebars.SafeString(fn.apply(this, Array.prototype.slice.call(arguments)) || ''); }); } }