diff --git a/js/admin.js b/js/admin.js index 91075c0f9..2ba357032 100644 --- a/js/admin.js +++ b/js/admin.js @@ -1616,7 +1616,7 @@ function loadRecommendation() token: token }, success: function(res) { - if (res.success && res.content.trim()) { + if (res.success && res.content && res.content.trim()) { $('#recommendation-wrapper-skeleton').fadeIn('slow'); $('#recommendation-wrapper').html(res.content); let images = $('#recommendation-wrapper img');