From a571e58bbceeb25fb891868d8fdff920b297f313 Mon Sep 17 00:00:00 2001 From: Jeremy Zhang Date: Fri, 20 Oct 2017 06:59:06 +0000 Subject: [PATCH] If attribute null, dont collapse --- webapp/titanembeds/static/js/embed.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webapp/titanembeds/static/js/embed.js b/webapp/titanembeds/static/js/embed.js index 844d013..c65ae41 100644 --- a/webapp/titanembeds/static/js/embed.js +++ b/webapp/titanembeds/static/js/embed.js @@ -988,7 +988,7 @@ for (var i = 1; i < allMessages.length; i++) { var last = $(allMessages[i - 1]); var current = $(allMessages[i]); - if (last.attr("discord_userid") == current.attr("discord_userid")) { + if (last.attr("discord_userid") == current.attr("discord_userid") && current.attr("discord_userid")) { current.addClass("collapsed"); } else { current.removeClass("collapsed");