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) }