loading result filters if they are not present. should close #771

This commit is contained in:
Jack 2020-12-28 23:13:22 +00:00
parent a989f502ef
commit 411e575ff3

View file

@ -1130,7 +1130,9 @@ function setFilter(group, filter, set) {
function showActiveFilters() {
let aboveChartDisplay = {};
if (config.resultFilters == undefined) {
loadResultFiltersFromCookie();
}
Object.keys(config.resultFilters).forEach((group) => {
aboveChartDisplay[group] = {
all: true,
@ -1310,7 +1312,7 @@ $(".pageAccount .topFilters .button.currentConfigFilter").click((e) => {
config.resultFilters.time[config.time] = true;
} else if (config.mode === "words") {
config.resultFilters.words[config.words] = true;
} else if (config.mode === "quote"){
} else if (config.mode === "quote") {
Object.keys(config.resultFilters.quoteLength).forEach((ql) => {
config.resultFilters.quoteLength[ql] = true;
});