mirror of
https://github.com/profullstack/logicsrc.git
synced 2026-08-15 07:17:30 +00:00
Handle empty arcade game lists
This commit is contained in:
parent
8f4691584c
commit
35bacaaa09
2 changed files with 9 additions and 1 deletions
|
|
@ -70,6 +70,6 @@ export function renderArcadeList(registry = createDefaultArcadeRegistry()) {
|
|||
"",
|
||||
`${"id".padEnd(idWidth)} ${"title".padEnd(titleWidth)} description`,
|
||||
`${"-".repeat(idWidth)} ${"-".repeat(titleWidth)} ${"-".repeat(40)}`,
|
||||
...rows.map((row) => `${row.id.padEnd(idWidth)} ${row.title.padEnd(titleWidth)} ${row.description}`)
|
||||
...(rows.length ? rows.map((row) => `${row.id.padEnd(idWidth)} ${row.title.padEnd(titleWidth)} ${row.description}`) : ["No games registered"])
|
||||
].join("\n");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue