From 35ef434db87582ed48679cb5dc29057e82d39ba1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oliver=20Hn=C3=A1t?= Date: Thu, 3 Nov 2022 17:21:20 +0100 Subject: [PATCH] grlcs --- dashboard_static/js/code.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/dashboard_static/js/code.js b/dashboard_static/js/code.js index c2cf42b..fd42ecd 100644 --- a/dashboard_static/js/code.js +++ b/dashboard_static/js/code.js @@ -58,6 +58,12 @@ function tweetCell(tweet) { } function filterTweets(tweets, bannedWords=[], searchWords=[], sorted, order) { + if(bannedWords.length == 1 && bannedWords[0] == ""){ + bannedWords = [] + } + if(searchWords.length == 1 && searchWords[0] == ""){ + searchWords = [] + } if(bannedWords.length > 0){ tweets = filterBannedWords(bannedWords, tweets) }