mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-03-12 15:08:45 +08:00
fixed tag filter not displaying
This commit is contained in:
parent
85b32e6097
commit
dd512301c5
1 changed files with 2 additions and 2 deletions
|
@ -206,9 +206,9 @@ export function updateActive() {
|
|||
ret += aboveChartDisplay.tags.array
|
||||
.map((id) => {
|
||||
if (id == "none") return id;
|
||||
let name = DB.getSnapshot().tags.filter((t) => t.id == id)[0];
|
||||
let name = DB.getSnapshot().tags.filter((t) => t._id == id)[0];
|
||||
if (name !== undefined) {
|
||||
return DB.getSnapshot().tags.filter((t) => t.id == id)[0].name;
|
||||
return DB.getSnapshot().tags.filter((t) => t._id == id)[0].name;
|
||||
}
|
||||
})
|
||||
.join(", ");
|
||||
|
|
Loading…
Reference in a new issue