Make generator config more robust

This commit is contained in:
Misode
2021-07-02 02:36:01 +02:00
parent cabd97cb39
commit f43cb03cc3
20 changed files with 158 additions and 172 deletions

View File

@@ -13,8 +13,8 @@ export function Worldgen({ lang, changeTitle }: WorldgenProps) {
changeTitle(loc('title.generator_category', loc('worldgen')))
return <main>
<div class="home">
{config.models.filter(m => m.category === 'worldgen').map(m =>
<ToolCard title={loc(m.id)} link={cleanUrl(m.id)} />
{config.generators.filter(g => g.category === 'worldgen').map(g =>
<ToolCard title={loc(g.id)} link={cleanUrl(g.url)} />
)}
</div>
</main>