From 8bb807c8e7169a8600bcc916a432751256dd2442 Mon Sep 17 00:00:00 2001 From: Endeavorance Date: Fri, 21 Mar 2025 16:52:17 -0400 Subject: [PATCH] Fix breakages --- src/lib/pfm.ts | 2 +- src/render/html/component/species.tsx | 13 +++++++------ 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/src/lib/pfm.ts b/src/lib/pfm.ts index 97043e6..cc18025 100644 --- a/src/lib/pfm.ts +++ b/src/lib/pfm.ts @@ -26,7 +26,7 @@ export function createMarkdownRenderer( .use(remarkGfm) .use(remarkWikiLink, { aliasDivider: "|", - permalinks: binding.playbill.allComponents().map((c) => c.id), + permalinks: binding.playbill.allComponentIds, pageResolver: (permalink: string) => { return [toSlug(permalink)]; }, diff --git a/src/render/html/component/species.tsx b/src/render/html/component/species.tsx index 95a3f97..6c11831 100644 --- a/src/render/html/component/species.tsx +++ b/src/render/html/component/species.tsx @@ -19,12 +19,13 @@ export function SpeciesSection({ species, playbill }: SpeciesSectionProps) {

Innate Abilities

{species.abilities.map((abilityId) => { - return ( - - ); + const ability = playbill.getAbility(abilityId); + + if (ability === null) { + throw new Error(`Ability not found: ${abilityId}`); + } + + return ; })}
) : (