mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-09-27 09:13:32 +08:00
fixed a bug where tag id's would be displayed
This commit is contained in:
parent
b43ba29a34
commit
cf427bcbba
1 changed files with 12 additions and 3 deletions
|
@ -716,9 +716,18 @@ function showActiveFilters() {
|
|||
chartString += "all";
|
||||
} else {
|
||||
allall = false;
|
||||
chartString += aboveChartDisplay[group].array
|
||||
.join(", ")
|
||||
.replace(/_/g, " ");
|
||||
if (group === "tags") {
|
||||
chartString += aboveChartDisplay.tags.array
|
||||
.map((id) => {
|
||||
if (id == "none") return id;
|
||||
return dbSnapshot.tags.filter((t) => t.id == id)[0].name;
|
||||
})
|
||||
.join(", ");
|
||||
} else {
|
||||
chartString += aboveChartDisplay[group].array
|
||||
.join(", ")
|
||||
.replace(/_/g, " ");
|
||||
}
|
||||
}
|
||||
chartString += "</div>";
|
||||
if (Object.keys(aboveChartDisplay).length !== count)
|
||||
|
|
Loading…
Add table
Reference in a new issue