mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-02-03 20:40:48 +08:00
fixed 'filter from current settings' button not activating 'no tag' button
This commit is contained in:
parent
45fe7b86c4
commit
3ced99c84f
1 changed files with 9 additions and 4 deletions
|
@ -627,10 +627,15 @@ $(".pageAccount #currentConfigFilter").click((e) => {
|
|||
});
|
||||
} catch (e) {}
|
||||
|
||||
activeTags.forEach((tag) => {
|
||||
config.resultFilters.push(`tag_${tag}`);
|
||||
toggleFilterButton(`tag_${tag}`);
|
||||
});
|
||||
if (activeTags.length > 0) {
|
||||
activeTags.forEach((tag) => {
|
||||
config.resultFilters.push(`tag_${tag}`);
|
||||
toggleFilterButton(`tag_${tag}`);
|
||||
});
|
||||
} else {
|
||||
config.resultFilters.push(`tag_notag`);
|
||||
toggleFilterButton(`tag_notag`);
|
||||
}
|
||||
|
||||
saveConfigToCookie();
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue