mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-12-27 02:21:27 +08:00
cleanup subgroupByConfigKey
This commit is contained in:
parent
0aaa7db094
commit
4d50af516b
1 changed files with 3 additions and 3 deletions
|
|
@ -378,9 +378,9 @@ const lists = {
|
|||
|
||||
const subGroupByConfigKey = Object.fromEntries(
|
||||
commands.list
|
||||
.filter((it) => it.id.startsWith("change"))
|
||||
.map((it) => [it.id.slice("change".length).toLowerCase(), it.subgroup]),
|
||||
);
|
||||
.filter((it) => it.subgroup?.configKey !== undefined)
|
||||
.map((it) => [it.subgroup?.configKey, it.subgroup]),
|
||||
) as Record<string, CommandsSubgroup>;
|
||||
|
||||
export function doesListExist(listName: string): boolean {
|
||||
if (subGroupByConfigKey[listName] !== undefined) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue