From 4c775f12ff6eda48fc22bec9ed336e60c1a0e07e Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Mon, 11 Dec 2017 04:25:19 +0100 Subject: cssssssss --- public/assets/js/lib/views/index/hootbox.js | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'public/assets/js/lib/views/index/hootbox.js') diff --git a/public/assets/js/lib/views/index/hootbox.js b/public/assets/js/lib/views/index/hootbox.js index cdd3eb0..64fc756 100644 --- a/public/assets/js/lib/views/index/hootbox.js +++ b/public/assets/js/lib/views/index/hootbox.js @@ -15,6 +15,10 @@ var HootBox = FormView.extend({ }, load: function(comments){ + if (!comments || !comments.length) { + this.$el.hide() + return + } comments.forEach(this.appendComment.bind(this)) }, -- cgit v1.2.3-70-g09d2