From 711a7046029d041b2576f281e413b087cee5de34 Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Fri, 13 Apr 2018 15:37:07 +0200 Subject: [PATCH] Fixed javascript runtime error of no icon name is given. --- app/assets/javascripts/app/lib/app_post/utils.coffee | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/assets/javascripts/app/lib/app_post/utils.coffee b/app/assets/javascripts/app/lib/app_post/utils.coffee index 5b78fd667..c4c9aa10a 100644 --- a/app/assets/javascripts/app/lib/app_post/utils.coffee +++ b/app/assets/javascripts/app/lib/app_post/utils.coffee @@ -829,6 +829,8 @@ class App.Utils num @icon: (name, className = '') -> + return if !name + # rtl support # =========== #