Fix breakages

This commit is contained in:
Endeavorance 2025-03-21 16:52:17 -04:00
parent f7f861a1cb
commit 8bb807c8e7
2 changed files with 8 additions and 7 deletions

View file

@ -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)];
},

View file

@ -19,12 +19,13 @@ export function SpeciesSection({ species, playbill }: SpeciesSectionProps) {
<div className="species-abilities">
<h3>Innate Abilities</h3>
{species.abilities.map((abilityId) => {
return (
<AbilityCard
ability={playbill.abilities[abilityId]}
key={abilityId}
/>
);
const ability = playbill.getAbility(abilityId);
if (ability === null) {
throw new Error(`Ability not found: ${abilityId}`);
}
return <AbilityCard ability={ability} key={abilityId} />;
})}
</div>
) : (